Part Number Hot Search : 
92315 SM6104P LTC1551L ISL6255A TN305 5P1F0E0 916BT3G CS43L43
Product Description
Full Text Search
 

To Download SAF-XC886C-8FFI Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  microcontrollers data sheet, v0.1, feb. 2006 xc886/888clm 8-bit single-chip microcontroller p r el i m i nar y
edition 2006-02 published by infineon technologies ag, 81726 mnchen, germany ? infineon technologies ag 2006. all rights reserved. attention please! the information herein is given to describe certain components and shall not be considered as a guarantee of characteristics. terms of delivery and rights to technical change reserved. we hereby disclaim any and all warranties, including but not limited to warranties of non-infringement, regarding circuits, descriptions and charts stated herein. information for further information on technology, delivery terms and conditions and prices pl ease contact your nearest infineon technologies office ( www.infineon.com ). warnings due to technical requirements components may contain dangerous substances. for information on the types in question please contact your near est infineon technologies office. infineon technologies components may only be used in life-support devices or systems with the express written approval of infineon technologies, if a failure of such components can reasonably be expected to cause the failure of that life-support device or system, or to affect the safe ty or effectiveness of that device or system. life support devices or systems are intended to be implanted in the human body, or to support and/or maintain and sustain and/or protect human life. if they fail, it is reasonable to assume that the health of the user or other persons may be endangered.
microcontrollers data sheet, v0.1, feb. 2006 xc886/888clm 8-bit single-chip microcontroller p r el i m i nar y
xc886/888 data sheet revision history: 2006-02 v0.1 previous version: page subjects (major changes since last revision) we listen to your comments any information within this document that you feel is wrong, unclear or missing at all? your feedback will help us to continuousl y improve the quality of this document. please send your proposal (including a reference to this document) to: mcdocu.comments@infineon.com
data sheet 1 v0.1, 2006-02 prelimary xc886/888 8-bit single-chip microcontroller 1 summary of features ? high-performance xc800 core ? compatible with standard 8051 processor ? two clocks per machine cycle architecture (for memory acce ss without wait state) ? two data pointers ? on-chip memory ? 12 kbytes of boot rom ? 256 bytes of ram ? 1.5 kbytes of xram ? 24/32 kbytes of flash; or 24/32 kbytes of rom, with additional 4 kbytes of flash (includes memory protection strategy) ? i/o port supply at 3.3 v or 5.0 v and co re logic supply at 2.5 v (generated by embedded voltage regulator) (more features on next page) figure 1 xc886/888 functional units port 0 port 1 port 2 port 3 xc800 core uart adc 10-bit 8-channel boot rom 12k x 8 xram 1.5k x 8 ram 256 x 8 on-chip debug support timer 0 16-bit timer 1 16-bit timer 2 16-bit uart1 ssc flash or rom 1) 24k/32k x 8 capture/compare unit 16-bit compare unit 16-bit 8-bit digital i/o 8-bit digital i/o 8-bit digital i/o 8-bit digital/ analog input 1) all rom devices come with an additional 4k x 8 flash port 4 port 5 mdu cordic multican timer 21 16-bit watchdog timer 8-bit digital i/o 8-bit digital i/o .
xc886/888clm summary of features data sheet 2 v0.1, 2006-02 prelimary features (continued): ? power-on reset generation ? brownout detection for core logic supply ? on-chip osc and pll for clock generation ? pll loss-of-lock detection ? power saving modes ? slow-down mode ? idle mode ? power-down mode with wake-up capability via rxd or exint0 ? clock gating control to each peripheral ? programmable 16-bit watchdog timer (wdt) ?six ports ? 34/48 pins as digital i/o ? 8 pins as digital/analog input ? 8-channel, 10-bit adc ? four 16-bit timers ? timer 0 and timer 1 (t0 and t1) ? timer 2 and timer 21 ? multiplication/division unit for arithmetic operations (mdu) ? cordic coprocessor for computation of trigonometric, hyperbolic and linear functions ? multican with 2 nodes, 32 message objects (mcan) ? capture/compare unit for pwm signal generation (ccu6) ? two full-duplex serial interfaces (uart and uart1) ? synchronous serial channel (ssc) ? on-chip debug support ? 1 kbyte of monitor rom (part of the 12-kbyte boot rom) ? 64 bytes of monitor ram ? packages: ?pg-tqfp-48 ? pg-tqfp-64 ? temperature range t a : ? saf (-40 to 85 c) ? sak (-40 to 125 c)
xc886/888clm summary of features data sheet 3 v0.1, 2006-02 prelimary xc886/888 variant devices the xc886/888 product family features devic es with different configurations, program memory sizes, package options, temperat ure and quality profiles (automotive or industrial), to offer cost-effective soluti ons for different app lication requirements. the list of xc886/888 device configurations are summarized in table 1 . for each configuration, 2 types of packages are available: ? pg-tqfp-48, which is denoted by xc886 and; ? pg-tqfp-64, which is denoted by xc888. from these 10 different combinations of configuration and package type, each are further made available in 6 sales types, which are grouped according to program memory sizes, temperature and quality profiles (automotive or industrial), as shown in table 2 . note: the asterisk (*) above denotes th e device configuration letters from table 1 . corresponding rom derivatives will be available on request. table 1 device configuration device name can module lin bsl support mdu module xc886/888 no no no xc886/888c yes no no xc886/888cm yes no yes xc886/888lm no yes yes xc886/888clm yes yes yes table 2 device profile sales type device type program memory size (kbytes) temperature profile ( c) quality profile sak-xc886*/888*-8ffa flash 32 -40 to 125 automotive sak-xc886*/888*-6ffa flash 24 -40 to 125 automotive saf-xc886*/888*-8ffa fla sh 32 -40 to 85 automotive saf-xc886*/888*-6ffa fla sh 24 -40 to 85 automotive saf-xc886*/888*-8ffi flash 32 -40 to 85 industrial saf-xc886*/888*-6ffi flash 24 -40 to 85 industrial
xc886/888clm summary of features data sheet 4 v0.1, 2006-02 prelimary ordering information the ordering code for infineon technologi es microcontrollers provides an exact reference to the required product. this ordering code indentifies: ? the derivative itself, i.e. its function set ? the specified temperature range ? the package and the type of delivery for the available ordering codes for the xc886/888, please refer to the ?product catalog microcontrollers? which summarizes all availa ble microcontroller variants. note: the ordering codes for the mask-rom ve rsions are defined for each product after verification of the respective rom code.
xc886/888clm general device information data sheet 5 v0.1, 2006-02 prelimary 2 general device information 2.1 block diagram figure 2 xc886/888 block diagram adc port 0 port 1 port 2 port 3 uart1 cordic ssc mdu timer 2 12-kbyte boot rom 1) 256-byte ram + 64-byte monitor ram 1.5-kbyte xram 24/32-kbyte flash or rom 2) xc800 core t0 & t1 uart 1) includes 1-kbyte monitor rom 2) the 24/32-kbyte rom has an additional 4-kbyte flash p0.0 - p0.7 p1.0 - p1.7 p3.0 - p3.7 p2.0 - p2.7 v aref v agnd clock generator 9.6 mhz on-chip osc pll xtal1 xtal2 internal bus v ddp v ssp v ddc v ssc reset tms mbc xc886/888 timer 21 ccu6 mcan port 4 port 5 p4.0 - p4.7 p5.0 - p5.7 wdt ocds
xc886/888clm general device information data sheet 6 v0.1, 2006-02 prelimary 2.2 logic symbol figure 3 xc886/888 logic symbol xc886 v ddp v ssp v ddc v ssc v aref v agnd xtal1 xtal2 tms reset mbc port 0 7-bit port 1 8-bit port 3 8-bit port 2 8-bit port 4 3-bit xc888 v ddp v ssp v ddc v ssc v aref v agnd xtal1 xtal2 tms reset mbc port 0 8-bi t port 1 8-bi t port 3 8-bi t port 2 8-bi t port 4 8-bi t port 5 8-bi t
xc886/888clm general device information data sheet 7 v0.1, 2006-02 prelimary 2.3 pin configuration figure 4 xc886 pin configuration, pg-tqfp-48 package (top view) xc886 123 456789101112 13 14 15 24 23 22 21 20 19 18 17 16 36 35 34 33 32 31 30 29 28 27 26 25 48 47 46 37 38 39 40 41 42 43 44 45 reset p3.5 p3.4 p4.1 p4.0 p0.3 p0. 4 mbc p3.2 p3.3 p0.7 v ddp v ssp p0. 0 p0. 5 p1. 6 p1. 7 v ssc v ddc xtal2 xtal1 tms p2.2 v ddp v ssp p2.0 p 2 . 1 p2.4 p2.3 p2.5 p2.6 v aref v agnd p0. 2 p 0 . 1 p1.3 p1.4 p1.2 p1.0 p1.1 p1.5 p2.7 p3.0 p3.1 p3.6 p3.7 p4.3 v ddp
xc886/888clm general device information data sheet 8 v0.1, 2006-02 prelimary figure 5 xc888 pin configuration, pg-tqfp-64 package (top view) v ddp xc888 1 2 3 4 5 6 7 8 9 10111213141516 17 18 19 28 27 26 25 24 23 22 21 20 32 31 30 29 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 64 63 62 53 54 55 56 57 58 59 60 61 49 50 51 52 reset p3.5 p3.4 p2.2 v ddp p1.3 p1.4 p5 .0 p4.2 p4.1 p4.0 p1.2 v ssp p5 .1 p2.0 p0.3 p0.4 p0 .5 p1 .6 p1 .7 p 2 . 1 v ssc v ddc xtal2 xtal1 tms mbc p1.0 p1.1 p1.5 p2.4 p2.3 p2.7 p2.5 p2.6 p3.0 p3.1 p3.2 p3.3 p3.6 p3.7 v aref v agnd p0 .6 p0.7 p4.5 p4.4 p4.6 p4.7 p5 .5 p5.6 p5.7 p5 .4 v ddp p0.0 nc nc p5 .3 p4.3 p5 .2 v ssp p0.2 p 0 . 1 note: the pins shaded in blue are not available in the pg-tqfp-48 package.
xc886/888clm general device information data sheet 9 v0.1, 2006-02 prelimary 2.4 pin definitions and functions table 3 pin definitions and functions symbol pin number (tqfp-48/64) type reset state function p0 i/o port 0 port 0 is an 8-bit bidirectional general purpose i/o port. it can be used as alternate functions for the jtag, ccu6, ua rt, uart1, timer 2, timer 21, mcan and ssc. p0.0 11/17 hi-z tck_0 jtag clock input t12hr_1 ccu6 timer 12 hardware run input cc61_1 input/output of capture/ compare channel 1 clkout_0 clock output rxdo_1 uart transmit data output p0.1 13/21 hi-z tdi_0 jtag serial data input t13hr_1 ccu6 timer 13 hardware run input rxd_1 uart receive data input rxdc1_0 mcan node 1 receiver input cout61_1 output of capture/compare channel 1 exf2_1 timer 2 external flag output p0.2 12/18 pu ctrap_2 ccu6 trap input tdo_0 jtag serial data output txd_1 uart transmit data output/ clock output txdc1_0 mcan node 1 transmitter output p0.3 48/63 hi-z sck_1 ssc clock input/output cout63_1 output of capture/compare channel 3 rxdo1_0 uart1 transmit data output
xc886/888clm general device information data sheet 10 v0.1, 2006-02 prelimary p0.4 1/64 hi-z mtsr_1 ssc master transmit output/ slave receive input cc62_1 input/output of capture/ compare channel 2 txd1_0 uart1 transmit data output/ clock output p0.5 2/1 hi-z mrst_1 ssc master receive input/ slave transmit output exint0_0 external interrupt input 0 t2ex1_1 timer 21 external trigger input rxd1_0 uart1 receive data input cout62_1 output of capture/compare channel 2 p0.6 ?/2 pu gpio p0.7 47/62 pu clkout_1 clock output table 3 pin definitions and functions (cont?d) symbol pin number (tqfp-48/64) type reset state function
xc886/888clm general device information data sheet 11 v0.1, 2006-02 prelimary p1 i/o port 1 port 1 is an 8-bit bidirectional general purpose i/o port. it can be used as alternate functions for the jtag, ccu6, uart, timer 0, timer 1, timer 2, timer 21, mcan and ssc. p1.0 26/34 pu rxd_0 uart receive data input t2ex timer 2 external trigger input rxdc0_0 mcan node 0 receiver input p1.1 27/35 pu exint3 external interrupt input 3 t0_1 timer 0 input tdo_1 jtag serial data output txd_0 uart transmit data output/ clock output txdc0_0 mcan node 0 transmitter output p1.2 28/36 pu sck_0 ssc clock input/output p1.3 29/37 pu mtsr_0 ssc master transmit output/ slave receive input txdc1_3 mcan node 1 transmitter output p1.4 30/38 pu mrst_0 ssc master receive input/ slave transmit output exint0_1 external interrupt input 6 rxdc1_3 mcan node 1 receiver input p1.5 31/39 pu ccpos0_1 ccu6 hall input 0 exint5 external interrupt input 5 t1_1 timer 1 input exf2_0 timer 2 external flag output rxdo_0 uart transmit data output table 3 pin definitions and functions (cont?d) symbol pin number (tqfp-48/64) type reset state function
xc886/888clm general device information data sheet 12 v0.1, 2006-02 prelimary p1.6 8/10 pu ccpos1_1 ccu6 hall input 1 t12hr_0 ccu6 timer 12 hardware run input exint6_0 external interrupt input 6 rxdc0_2 mcan node 0 receiver input t21_1 timer 21 input p1.7 9/11 pu ccpos2_1 ccu6 hall input 2 t13hr_0 ccu6 timer 13 hardware run input t2_1 timer 2 input txdc0_2 mcan node 0 transmitter output p1.5 and p1.6 can be used as a software chip select output for the ssc. table 3 pin definitions and functions (cont?d) symbol pin number (tqfp-48/64) type reset state function
xc886/888clm general device information data sheet 13 v0.1, 2006-02 prelimary p2 i port 2 port 2 is an 8-bit general purpose input-only port. it can be used as alternate functions for the digital inputs of the jtag and ccu6. it is also used as the analog inputs for the adc. p2.0 14/22 hi-z ccpos0_0 ccu6 hall input 0 exint1_0 external interrupt input 1 t12hr_2 ccu6 timer 12 hardware run input tck_1 jtag clock input cc61_3 input of capture/compare channel 1 an0 analog input 0 p2.1 15/23 hi-z ccpos1_0 ccu6 hall input 1 exint2_0 external interrupt input 2 t13hr_2 ccu6 timer 13 hardware run input tdi_1 jtag serial data input cc62_3 input of capture/compare channel 2 an1 analog input 1 p2.2 16/24 hi-z ccpos2_0 ccu6 hall input 2 ctrap_1 ccu6 trap input cc60_3 input of capture/compare channel 0 an2 analog input 2 p2.3 19/27 hi-z an3 analog input 3 p2.4 20/28 hi-z an4 analog input 4 p2.5 21/29 hi-z an5 analog input 5 p2.6 22/30 hi-z an6 analog input 6 p2.7 25/33 hi-z an7 analog input 7 table 3 pin definitions and functions (cont?d) symbol pin number (tqfp-48/64) type reset state function
xc886/888clm general device information data sheet 14 v0.1, 2006-02 prelimary p3 i/o port 3 port 3 is an 8-bit bidirectional general purpose i/o port. it can be used as alternate functions for ccu6, uart1, timer 21 and mcan. p3.0 35/43 hi-z ccpos1_2 ccu6 hall input 1 cc60_0 input/output of capture/ compare channel 0 rxdo1_1 uart1 transmit data output p3.1 36/44 hi-z ccpos0_2 ccu6 hall input 0 cc61_2 input/output of capture/ compare channel 1 cout60_0 output of capture/compare channel 0 txd1_1 uart1 transmit data output/ clock output p3.2 37/49 hi-z ccpos2_2 ccu6 hall input 2 rxdc1_1 mcan node 0 receiver input rxd1_1 uart1 receive data input cc61_0 input/output of capture/ compare channel 1 p3.3 38/50 hi-z cout61_0 output of capture/compare channel 1 txdc1_1 mcan node 1 transmitter output p3.4 39/51 hi-z cc62_0 input/output of capture/ compare channel 2 rxdc0_1 mcan node 0 receiver input t2ex1_0 timer 21 external trigger input p3.5 40/52 hi-z cout62_0 output of capture/compare channel 2 exf21_0 timer 21 external flag output txdc0_1 mcan node 0 transmitter output p3.6 33/41 pd ctrap_0 ccu6 trap input table 3 pin definitions and functions (cont?d) symbol pin number (tqfp-48/64) type reset state function
xc886/888clm general device information data sheet 15 v0.1, 2006-02 prelimary p3.7 34/42 hi-z exint4 external interrupt input 4 cout63_0 output of capture/compare channel 3 p4 i/o port 4 port 4 is an 8-bit bidirectional general purpose i/o port. it can be used as alternate functions for ccu6, timer 0, timer 1, timer 21 and mcan. p4.0 45/59 hi-z rxdc0_3 mcan node 0 receiver input cc60_1 output of capture/compare channel 0 p4.1 46/60 hi-z txdc0_3 mcan node 0 transmitter output cout60_1 output of capture/compare channel 0 p4.2 ?/61 pu exint6_1 external interrupt input 6 t21_0 timer 21 input p4.3 32/40 hi-z exf21_1 timer 21 external flag output cout63_2 output of capture/compare channel 3 p4.4 ?/45 hi-z ccpos0_3 ccu6 hall input 0 t0_0 timer 0 input cc61_4 output of capture/compare channel 1 p4.5 ?/46 hi-z ccpos1_3 ccu6 hall input 1 t1_0 timer 1 input cout61_2 output of capture/compare channel 1 p4.6 ?/47 hi-z ccpos2_3 ccu6 hall input 2 t2_0 timer 2 input cc62_2 output of capture/compare channel 2 p4.7 ?/48 hi-z ctrap_3 ccu6 trap input cout62_2 output of capture/compare channel 2 table 3 pin definitions and functions (cont?d) symbol pin number (tqfp-48/64) type reset state function
xc886/888clm general device information data sheet 16 v0.1, 2006-02 prelimary p5 i/o port 5 port 5 is an 8-bit bidirectional general purpose i/o port. it can be used as alternate functions for uart, uart1 and jtag. p5.0 ?/8 pu exint1_1 external interrupt input 1 p5.1 ?/9 pu exint2_1 external interrupt input 2 p5.2 ?/12 pu rxd_2 uart receive data input p5.3 ?/13 pu txd_2 uart transmit data output/ clock output p5.4 ?/14 pu rxdo_2 uart transmit data output p5.5 ?/15 pu tdo_2 jtag serial data output txd1_2 uart1 transmit data output/ clock output p5.6 ?/19 pu tck_2 jtag clock input rxdo1_2 uart1 transmit data output p5.7 ?/20 pu tdi_2 jtag serial data input rxd1_2 uart1 receive data input v ddp 7, 17, 43/ 7, 25, 55 ?? i/o port supply (3.3 or 5.0 v) v ssp 18, 42/26, 54 ? ? i/o port ground v ddc 6/6 ? ? core supply monitor (2.5 v) v ssc 5/5 ? ? core supply ground v aref 24/32 ? ? adc reference voltage v agnd 23/31 ? ? adc reference ground xtal1 4/4 i hi-z external oscillator input (backup for on-chip osc, normally nc) xtal2 3/3 o hi-z external oscillator output (backup for on-chip osc, normally nc) tms 10/16 i pd test mode select reset 41/53 i pu reset input mbc 44/58 i pu monitor & bootstrap loader control nc ?/21, 59, 60 ? ? no connection table 3 pin definitions and functions (cont?d) symbol pin number (tqfp-48/64) type reset state function
xc886/888clm functional description data sheet 17 v0.1, 2006-02 prelimary 3 functional description 3.1 processor architecture the xc886/888 is based on a high-performanc e 8-bit central processing unit (cpu) that is compatible with th e standard 8051 processor. wh ile the standard 8051 processor is designed around a 12-clock machine cycle, the xc886/888 cpu uses a 2-clock machine cycle. this allows fast access to rom or ram memories without wait state. access to the flash memory, however, requires an additional wait state (one machine cycle). the instruction set consists of 45% one-byte, 41% two-byte and 14% three-byte instructions. the xc886/888 cpu provides a range of debugg ing features, includ ing basic stop/start, single-step execution, break point support and read/write access to the data memory, program memory and sfrs. figure 6 shows the cpu functional blocks.
xc886/888clm functional description data sheet 18 v0.1, 2006-02 prelimary figure 6 cpu block diagram 3.2 memory organization the xc886/888 cpu operates in the following five address spaces: ? 12 kbytes of boot rom program memory ? 256 bytes of internal ram data memory ? 1.5 kbytes of xram memory (xram can be read/written as progra m memory or external data memory) ? a 128-byte special function register area ? 24/32 kbytes of flash program memory (flash devices); or 24/32 kbytes of rom program memory , with additional 4 kbytes of flash (rom devices) figure 7 illustrates the memory add ress spaces of the 32-kbyte flash devices. for the 24-kbyte flash devices, the shaded banks are not available. register interface alu uart core sfrs 16-bit registers & memory interface opcode decoder state machine & power saving interrupt controller multiplier / divider opcode & immediate registers timer 0 / timer 1 internal data memory external sfrs external data memory program memory f cclk memory wait reset legacy external interrupts (ien0, ien1) external interrupts non-maskable interrupt
xc886/888clm functional description data sheet 19 v0.1, 2006-02 prelimary figure 7 memory map of xc886/888 flash device 0000 h 2000 h 4000 h 6000 h f000 h c000 h f600 h ffff h 7000 h 8000 h p-flash banks 2 and 3 2 x 4 kbytes boot rom 12 kbytes xram 1.5 kbytes f000 h f600 h 0000 h ffff h special function registers indirect address direct address 80 h ff h 00 h program space external data space internal data space internal ram xram 1.5 kbytes 7f h internal ram p-flash banks 0 and 1 2 x 4 kbytes d-flash bank 1 4 kbytes d-flash bank 0 4 kbytes a000 h b000 h d-flash bank 0 4 kbytes d-flash bank 1 4 kbytes 5000 h p-flash banks 4 and 5 2 x 4 kbytes 1) in 24-kbyte flash devices, the upper 2- kbyte of banks 4 and 5 are not available. 1)
xc886/888clm functional description data sheet 20 v0.1, 2006-02 prelimary 3.2.1 memory protection strategy the xc886/888 memory protection strategy includes: ? read-out protection: the user is able to protect the contents in the flash (for flash devices) and rom (for rom devices) memory from being read ? flash program and erase prot ection (for flash devices only) flash memory protection modes are available only for flash devices: ? mode 0: only the p-flash is prot ected; the d-flash is unprotected ? mode 1: both the p-flash and d-flash are protected the selection of each protection mode and the restrictions imposed are summarized in table 4 . bsl mode 6, which is used for enabling flas h protection, can also be used for disabling flash protection. here, the programmed password must be provided by the user. a password match triggers an automatic erase of the protected p-flash and d-flash contents, including the programmed password. the flash protection is then disabled upon the next reset. although no protection scheme can be considered infallible, the xc886/888 memory protection strategy provides a very hi gh level of protection for a general purpose microcontroller. note: if rom read-out protection is enabled, only read instructions in the rom memory can target the rom contents. table 4 flash protection modes mode 01 activation program a valid password via bsl mode 6 selection msb of password = 0 msb of password = 1 p-flash contents can be read by read instructions in the p-flash read instructions in the p-flash or d-flash p-flash program and erase not possible not possible d-flash contents can be read by read instructions in any program memory read instructions in the p-flash or d-flash d-flash program possible not possible d-flash erase possible, on the condition that bit dflashen in register misc_con is set to 1 prior to each erase operation not possible
xc886/888clm functional description data sheet 21 v0.1, 2006-02 prelimary 3.2.2 special function register the special function registers (sfrs) occupy direct internal data memory space in the range 80 h to ff h . all registers, except the program counter, reside in the sfr area. the sfrs include pointers and registers that provide an interface between the cpu and the on-chip peripherals. as the 128-sfr range is less than the total number of registers required, address extension mechanisms ar e required to increase the number of addressable sfrs. the address extension mechanisms include: ? mapping ? paging 3.2.2.1 address extension by mapping address extension is perfo rmed at the system level by mapping. the sfr area is extended into two portions: the standard (non-mapped) sfr area and the mapped sfr area. each portion supports the same address range 80 h to ff h , bringing the number of addressable sfrs to 256. the extended address range is not directly controlled by the cpu instruction itself, bu t is derived from bit rmap in the system control register syscon0 at address 8f h . to access sfrs in the mapped area, bit rmap in sfr syscon0 must be set. alternat ively, the sfrs in the st andard area can be accessed by clearing bit rmap. the sfr area can be selected as shown in figure 8 . syscon0 system control register 0 reset value: 00 h 765432 10 0 imode 0 rmap rrw r rw the functions of the shaded bits are not described here field bits type description rmap 0rw special function register map control 0 the access to the standard sfr area is enabled. 1 the access to the mapped sfr area is enabled. 0 [7:5], [3:1] r reserved returns 0 if read; should be written with 0.
xc886/888clm functional description data sheet 22 v0.1, 2006-02 prelimary note: the rmap bit must be cleared/set by an l or orl instructions. the rest bits of syscon0 should not be modified. as long as bit rmap is set, the mapped sfr area can be accessed. this bit is not cleared automatically by hardware. th us, before standard/ma pped registers are accessed, bit rmap must be cleared /set, respectively, by software. figure 8 address extension by mapping module 1 sfrs ?... syscon0.rmap sfr data (to/from cpu) rw standard area (rmap = 0) ?... 80 h ff h 80 h ff h direct internal data memory address mapped area (rmap = 1) module 2 sfrs module n sfrs module (n+1) sfrs module (n+2) sfrs module m sfrs
xc886/888clm functional description data sheet 23 v0.1, 2006-02 prelimary 3.2.2.2 address extension by paging address extension is further performed at the module level by paging. with the address extension by mapping, the xc886/888 has a 256-sfr address range. however, this is still less than the total number of sfrs neede d by the on-chip peripherals. to meet this requirement, some peripherals have a built-in local address extension mechanism for increasing the number of addressable sfrs . the extended address range is not directly controlled by the cpu instructio n itself, but is derived from bit field page in the module page register mod_page. hence, the bi t field page must be programmed before accessing the sfr of the target module. each module may contain a different number of pages and a different number of sf rs per page, depending on the specific requirement. besides setting the correct rmap bit value to select the sfr area, the user must also ensure that a valid page is selected to target the desired sfr. a page inside the extended address range can be selected as shown in figure 9 . figure 9 address extension by paging sfr0 sfr1 sfrx ?... page 0 sfr0 sfr1 sfry ?... page 1 ?... sfr0 sfr1 sfrz ?... page q mod_page.page sfr address (from cpu) sfr data (to/from cpu) rw module
xc886/888clm functional description data sheet 24 v0.1, 2006-02 prelimary in order to access a register located in a p age different from the actual one, the current page must be left. this is done by reprogramming the bit field page in the page register. only then can the desired access be performed. if an interrupt routine is initiated betw een the page register access and the module register access, and the interrupt needs to a ccess a register locat ed in another page, the current page setting can be saved, the new one programmed and finally, the old page setting restored. this is possible with the storage fields stx (x = 0 - 3) for the save and restore action of the current page setting. by indicating which storage bit field should be used in parallel with the new page va lue, a single write operation can: ? save the contents of page in stx befo re overwriting with the new value (this is done in the beginning of the interr upt routine to save the current page setting and program the new page number); or ? overwrite the contents of page with the c ontents of stx, ignori ng the value written to the bit positions of page (this is done at the end of the interrupt ro utine to restore the previous page setting before the interrupt occurred) figure 10 storage elements for paging with this mechanism, a certain number of in terrupt routines (or other routines) can perform page changes without reading and st oring the previously used page information. the use of only write oper ations makes the system simp ler and faster . consequently, this mechanism significantly improves the performance of short interrupt routines. the xc886/888 supports local address extension for: ? parallel ports ? analog-to-digital converter (adc) ? capture/compare unit 6 (ccu6) ? system control registers page st0 st1 st2 st3 value update from cpu stnr
xc886/888clm functional description data sheet 25 v0.1, 2006-02 prelimary the page register has the following definition: mod_page page register for module mod reset value: 00 h 765432 10 op stnr 0 page wwr rw field bits type description page [2:0] rw page bits when written, the value indicates the new page. when read, the value indicates the currently active page. stnr [5:4] w storage number this number indicates which storage bit field is the target of the operation defined by bit field op. if op = 10 b , the contents of page are saved in stx before being overwritten with the new value. if op = 11 b , the contents of page are overwritten by the contents of stx. the value wr itten to the bit positions of page is ignored. 00 st0 is selected. 01 st1 is selected. 10 st2 is selected. 11 st3 is selected.
xc886/888clm functional description data sheet 26 v0.1, 2006-02 prelimary op [7:6] w operation 0x manual page mode. the value of stnr is ignored and page is directly written. 10 new page programming with automatic page saving. the value written to the bit positions of page is stored. in parallel, the previous contents of page are saved in the storage bit field stx indicated by stnr. 11 automatic restore page action. the value written to the bit positions page is ignored and instead, page is overwritten by the contents of the storage bit field stx indicated by stnr. 0 3r reserved returns 0 if read; should be written with 0. field bits type description
xc886/888clm functional description data sheet 27 v0.1, 2006-02 prelimary 3.2.3 bit protection scheme the bit protection scheme prevents direct softwa re writing of selected bits (i.e., protected bits) using the passwd register. when the bit field mode is 11 b , writing 10011 b to the bit field pass opens access to writing of all protect ed bits, and wr iting 10101 b to the bit field pass closes access to writing of all protected bits. note that access is opened for maximum 32 cclks if the ?close access? password is not written. if ?open access? password is written again be fore the end of 32 cclk cycles, there will be a recount of 32 cclk cycles. the protected bits include the n- and k-divider bits, ndiv and kdiv; the watchdog timer enable bit, wdten; and the power-down and slow-down enable bits, pd and sd. passwd password register reset value: 07 h 76543210 pass protect _s mode wh rh rw field bits type description mode [1:0] rw bit protection scheme control bits 00 scheme disabled 11 scheme enabled (default) others: scheme enabled these two bits cannot be written directly. to change the value between 11 b and 00 b , the bit field pass must be written with 11000 b ; only then, will the mode[1:0] be registered. protect_s 2rh bit protection signal status bit this bit shows the status of the protection. 0 software is able to writ e to all protected bits. 1 software is unable to write to any protected bits. pass [7:3] wh password bits the bit protection scheme only recognizes three patterns. 11000 b enables writing of the bit field mode. 10011 b opens access to writing of all protected bits. 10101 b closes access to writing of all protected bits.
xc886/888clm functional description data sheet 28 v0.1, 2006-02 prelimary 3.2.4 xc886/888 register overview the sfrs of the xc886/888 are organized into groups according to their functional units. the contents (bits) of the sfrs are summarized in table 5 to table 18 , with the addresses of the bitaddressable sfrs appearing in bold typeface. the cpu sfrs can be accessed in both the standard and mapped memory areas (rmap = 0 or 1). table 5 cpu register overview addrregister name bit 76543210 rmap = 0 or 1 81 h sp reset: 07 h stack pointer register bit field sp type rw 82 h dpl reset: 00 h data pointer register low bit field dpl7 dpl6 dpl5 dpl4 dpl3 dpl2 dpl1 dpl0 type rw rw rw rw rw rw rw rw 83 h dph reset: 00 h data pointer register high bit field dph7 dph6 dph5 dph4 dph3 dph2 dph1 dph0 type rw rw rw rw rw rw rw rw 87 h pcon reset: 00 h power control register bit field smod 0 gf1 gf0 0 idle type rw r rw rw r rw 88 h tcon reset: 00 h timer control register bit field tf1 tr1 tf0 tr0 ie1 it1 ie0 it0 type rwh rw rwh rw rwh rw rwh rw 89 h tmod reset: 00 h timer mode register bit field gate1 0 t1m gate0 0 t0m type rw r rw rw r rw 8a h tl0 reset: 00 h timer 0 register low bit field val type rwh 8b h tl1 reset: 00 h timer 1 register low bit field val type rwh 8c h th0 reset: 00 h timer 0 register high bit field val type rwh 8d h th1 reset: 00 h timer 1 register high bit field val type rwh 98 h scon reset: 00 h serial channel control register bit field sm0 sm1 sm2 ren tb8 rb8 ti ri type rw rw rw rw rw rwh rwh rwh 99 h sbuf reset: 00 h serial data buffer register bit field val type rwh a2 h eo reset: 00 h extended operation register bit field 0 trap_ en 0 dpsel 0 type r rw r rw a8 h ien0 reset: 00 h interrupt enable register 0 bit field ea 0 et2 es et1 ex1 et0 ex0 type rw r rwrwrwrwrwrw b8 h ip reset: 00 h interrupt priority register bit field 0 pt2 ps pt1 px1 pt0 px0 type r rwrwrwrwrwrw b9 h iph reset: 00 h interrupt priority register high bit field 0 pt2h psh pt1h px1h pt0h px0h type r rwrwrwrwrwrw d0 h psw reset: 00 h program status word register bit field cy ac f0 rs1 rs0 ov f1 p type rwh rwh rw rw rw rwh rw rh e0 h acc reset: 00 h accumulator register bit field acc7 acc6 acc5 acc4 acc3 acc2 acc1 acc0 type rw rw rw rw rw rw rw rw e8 h ien1 reset: 00 h interrupt enable register 1 bit field eccip 3 eccip 2 eccip 1 eccip 0 exm ex2 essc eadc type rw rw rw rw rw rw rw rw
xc886/888clm functional description data sheet 29 v0.1, 2006-02 prelimary the mdu sfrs can be accessed in the mapped memory area (rmap = 1). f0 h b reset: 00 h b register bit field b7 b6 b5 b4 b3 b2 b1 b0 type rw rw rw rw rw rw rw rw f8 h ip1 reset: 00 h interrupt priority register 1 bit field pccip 3 pccip 2 pccip 1 pccip 0 pxm px2 pssc padc type rw rw rw rw rw rw rw rw f9 h iph1 reset: 00 h interrupt priority register 1 high bit field pccip 3h pccip 2h pccip 1h pccip 0h pxmh px2h pssch padc h type rw rw rw rw rw rw rw rw table 6 mdu register overview addrregister name bit 76543210 rmap = 1 b0 h mdustat reset: 00 h mdu status register bit field 0 bsy ierr irdy type r rh rwh rwh b1 h mducon reset: 00 h mdu control register bit field ie ir rsel start opcode type rw rw rw rwh rw b2 h md0 reset: 00 h mdu data register 0 bit field data type rw mr0 reset: 00 h mdu data register 0 bit field data type rh b3 h md1 reset: 00 h mdu data register 1 bit field data type rw mr1 reset: 00 h mdu data register 1 bit field data type rh b4 h md2 reset: 00 h mdu data register 2 bit field data type rw mr2 reset: 00 h mdu data register 2 bit field data type rh b5 h md3 reset: 00 h mdu data register 3 bit field data type rw mr3 reset: 00 h mdu data register 3 bit field data type rh b6 h md4 reset: 00 h mdu data register 4 bit field data multiplication/division type rw shift/normalization 0 slr sctr rw rw rw mr4 reset: 00 h mdu data register 4 bit field data multiplication/division type rh shift/normalization 0 sctr rh rh b7 h md5 reset: 00 h mdu data register 5 bit field data type rw mr5 reset: 00 h mdu data register 5 bit field data type rh table 5 cpu register overview (cont?d) addrregister name bit 76543210
xc886/888clm functional description data sheet 30 v0.1, 2006-02 prelimary the cordic sfrs can be accessed in the mapped memory area (rmap = 1). the system control sfrs can be accessed in the standard memory area (rmap = 0). table 7 cordic regi ster overview addrregister name bit 76543210 rmap = 1 9a h cd_cordxl reset: 00 h cordic x data low byte bit field datal type rw 9b h cd_cordxh reset: 00 h cordic x data high byte bit field datah type rw 9c h cd_cordyl reset: 00 h cordic y data low byte bit field datal type rw 9d h cd_cordyh reset: 00 h cordic y data high byte bit field datah type rw 9e h cd_cordzl reset: 00 h cordic z data low byte bit field datal type rw 9f h cd_cordzh reset: 00 h cordic z data high byte bit field datah type rw a0 h cd_statc reset: 00 h cordic status and data control register bit field keepz keepy keepx dmap int_e n eoc erro r bsy type rw rw rw rw rw rwh rh rh a1 h cd_con reset: 00 h cordic control register bit field mps x_usi gn st_mo de rotve c mode st type rw w rw rw rw rwh table 8 system control register overview addrregister name bit 76543210 rmap = 0 or 1 8f h syscon0 reset: 00 h system control register 0 bit field 0 imode 0 rmap type r rw r rw rmap = 0 bf h scu_page reset: 00 h page register bit field op stnr 0 page type w w r rw rmap = 0, page 0 b3 h modpisel reset: 00 h peripheral input select register bit field 0 urris h jtagt dis jtagt cks exint 2is exint 1is exint 0is urris type r rw rw rw rw rw rw rw b4 h ircon0 reset: 00 h interrupt request register 0 bit field 0 exint 6 exint 5 exint 4 exint 3 exint 2 exint 1 exint 0 type r rwh rwh rwh rwh rwh rwh rwh b5 h ircon1 reset: 00 h interrupt request register 1 bit field 0 cans rc2 cans rc1 adcs rc1 adcs rc0 rir tir eir type r rwh rwh rwh rwh rwh rwh rwh b6 h ircon2 reset: 00 h interrupt request register 2 bit field 0 cans rc3 0 cans rc0 type r rwh r rwh b7 h exicon0 reset: f0 h external interrupt control register 0 bit field exint3 exint2 exint1 exint0 type rw rw rw rw ba h exicon1 reset: 3f h external interrupt control register 1 bit field 0 exint6 exint5 exint4 type r rw rw rw
xc886/888clm functional description data sheet 31 v0.1, 2006-02 prelimary bb h nmicon reset: 00 h nmi control register bit field 0 nmi ecc nmi vddp nmi vdd nmi ocds nmi flash nmi pll nmi wdt type r rw rw rw rw rw rw rw bc h nmisr reset: 00 h nmi status register bit field 0 fnmi ecc fnmi vddp fnmi vdd fnmi ocds fnmi flash fnmi pll fnmi wdt type r rwh rwh rwh rwh rwh rwh rwh bd h bcon reset: 00 h baud rate control register bit field bgsel 0 brdis brpre r type rw r rw rw rw be h bg reset: 00 h baud rate timer/reload register bit field br_value type rwh e9 h fdcon reset: 00 h fractional divider control register bit field bgs synen errsy n eofsy n brk ndov fdm fden type rw rw rwh rwh rwh rwh rw rw ea h fdstep reset: 00 h fractional divider reload register bit field step type rw eb h fdres reset: 00 h fractional divider result register bit field result type rh rmap = 0, page 1 b3 h id reset: 09 h identity register bit field prodid verid type r r b4 h pmcon0 reset: 00 h power mode control register 0 bit field 0 wdt rst wkrs wk sel sd pd ws type r rwh rwh rw rw rwh rw b5 h pmcon1 reset: 00 h power mode control register 1 bit field 0 cdc_d is can_d is mdu_ dis t2_dis ccu _dis ssc _dis adc _dis type r rw rw rw rw rw rw rw b6 h osc_con reset: 08 h osc control register bit field 0 osc pd xpd osc ss ordr es oscr type r rw rw rw rwh rh b7 h pll_con reset: 90 h pll control register bit field ndiv vcob yp osc disc resld lock type rw rw rw rwh rh ba h cmcon reset: 10 h clock control register bit field vco sel kdiv 0 fccfg clkrel type rw rw r rw rw bb h passwd reset: 07 h password register bit field pass prote ct_s mode type wh rh rw bc h feal reset: 00 h flash error address register low bit field eccerraddr type rh bd h feah reset: 00 h flash error address register high bit field eccerraddr type rh be h cocon reset: 00 h clock output control register bit field 0 tlen cout s corel type r rw rw rw e9 h misc_con reset: 00 h miscellaneous control register bit field 0 dflas hen type r rwh rmap = 0, page 3 b3 h xaddrh reset: f0 h on-chip xram address higher order bit field addrh type rw table 8 system control register overview (cont?d) addrregister name bit 76543210
xc886/888clm functional description data sheet 32 v0.1, 2006-02 prelimary the wdt sfrs can be accessed in the mapped memory area (rmap = 1). the port sfrs can be accessed in the standard memory area (rmap = 0). b4 h ircon3 reset: 00 h interrupt request register 3 bit field 0 cans rc5 ccu6s r1 0 cans rc4 ccu6s r0 type r rwh rwh rrwh rwh b5 h ircon4 reset: 00 h interrupt request register 4 bit field 0 cans rc7 ccu6s r3 0 cans rc6 ccu6s r2 type r rwh rwh rrwh rwh b7 h modpisel1 reset: 00 h peripheral input select register 1 bit field exint 6is 0 ur1ris t21exi s jtagt dis1 jtagt cks1 type rw r rw rw rw rw ba h modpisel2 reset: 00 h peripheral input select register 2 bit field 0 t21is t2is t1is t0is type r rw rw rw rw bb h pmcon2 reset: 00 h power mode control register 2 bit field 0 uart1 _dis t21 _dis type r rw rw bd h modsusp reset: 00 h module suspend control register bit field 0 t21su sp t2sus p t13su sp t12su sp wdts usp type r rw rw rw rw rw table 9 wdt register overview addrregister name bit 76543210 rmap = 1 bb h wdtcon reset: 00 h watchdog timer control register bit field 0 winb en wdt pr 0 wdt en wdt rs wdt in type r rw rh r rw rwh rw bc h wdtrel reset: 00 h watchdog timer reload register bit field wdtrel type rw bd h wdtwinb reset: 00 h watchdog window-boundary count register bit field wdtwinb type rw be h wdtl reset: 00 h watchdog timer register low bit field wdt[7:0] type rh bf h wdth reset: 00 h watchdog timer register high bit field wdt[15:8] type rh table 10 port register overview addrregister name bit 76543210 rmap = 0 b2 h port_page reset: 00 h page register for port bit field op stnr 0 page type w w r rw rmap = 0, page 0 80 h p0_data reset: 00 h p0 data register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 86 h p0_dir reset: 00 h p0 direction register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 90 h p1_data reset: 00 h p1 data register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw table 8 system control register overview (cont?d) addrregister name bit 76543210
xc886/888clm functional description data sheet 33 v0.1, 2006-02 prelimary 91 h p1_dir reset: 00 h p1 direction register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 92 h p5_data reset: 00 h p5 data register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 93 h p5_dir reset: 00 h p5 direction register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw a0 h p2_data reset: 00 h p2 data register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw a1 h p2_dir reset: 00 h p2 direction register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw b0 h p3_data reset: 00 h p3 data register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw b1 h p3_dir reset: 00 h p3 direction register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw c8 h p4_data reset: 00 h p4 data register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw c9 h p4_dir reset: 00 h p4 direction register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw rmap = 0, page 1 80 h p0_pudsel reset: ff h p0 pull-up/pull-down select register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 86 h p0_puden reset: c4 h p0 pull-up/pull-down enable register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 90 h p1_pudsel reset: ff h p1 pull-up/pull-down select register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 91 h p1_puden reset: ff h p1 pull-up/pull-down enable register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 92 h p5_pudsel reset: ff h p5 pull-up/pull-down select register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 93 h p5_puden reset: ff h p5 pull-up/pull-down enable register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw a0 h p2_pudsel reset: ff h p2 pull-up/pull-down select register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw a1 h p2_puden reset: 00 h p2 pull-up/pull-down enable register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw b0 h p3_pudsel reset: bf h p3 pull-up/pull-down select register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw b1 h p3_puden reset: 40 h p3 pull-up/pull-down enable register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw c8 h p4_pudsel reset: ff h p4 pull-up/pull-down select register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw c9 h p4_puden reset: 04 h p4 pull-up/pull-down enable register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw rmap = 0, page 2 80 h p0_altsel0 reset: 00 h p0 alternate select 0 register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 86 h p0_altsel1 reset: 00 h p0 alternate select 1 register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 90 h p1_altsel0 reset: 00 h p1 alternate select 0 register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw table 10 port register overview (cont?d) addrregister name bit 76543210
xc886/888clm functional description data sheet 34 v0.1, 2006-02 prelimary the adc sfrs can be accessed in the standard memory area (rmap = 0). 91 h p1_altsel1 reset: 00 h p1 alternate select 1 register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 92 h p5_altsel0 reset: 00 h p5 alternate select 0 register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 93 h p5_altsel1 reset: 00 h p5 alternate select 1 register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw b0 h p3_altsel0 reset: 00 h p3 alternate select 0 register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw b1 h p3_altsel1 reset: 00 h p3 alternate select 1 register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw c8 h p4_altsel0 reset: 00 h p4 alternate select 0 register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw c9 h p4_altsel1 reset: 00 h p4 alternate select 1 register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw rmap = 0, page 3 80 h p0_od reset: 00 h p0 open drain control register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 90 h p1_od reset: 00 h p1 open drain control register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw 92 h p5_od reset: 00 h p5 open drain control register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw b0 h p3_od reset: 00 h p3 open drain control register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw c8 h p4_od reset: 00 h p4 open drain control register bit field p7 p6 p5 p4 p3 p2 p1 p0 type rw rw rw rw rw rw rw rw table 11 adc register overview addrregister name bit 76543210 rmap = 0 d1 h adc_page reset: 00 h page register for adc bit field op stnr 0 page type w w r rw rmap = 0 , page 0 ca h adc_globctr reset: 30 h global control register bit field anon dw ctc 0 type rw rw rw r cb h adc_globstr reset: 00 h global status register bit field 0 chnr 0 sam ple busy type r rh r rh rh cc h adc_prar reset: 00 h priority and arbitration register bit field asen1 asen0 0 arbm csm1 prio1 csm0 prio0 type rw rw r rw rw rw rw rw cd h adc_lcbr reset: b7 h limit check boundary register bit field bound1 bound0 type rw rw ce h adc_inpcr0 reset: 00 h input class register 0 bit field stc type rw cf h adc_etrcr reset: 00 h external trigger control register bit field synen 1 synen 0 etrsel1 etrsel0 type rw rw rw rw rmap = 0 , page 1 table 10 port register overview (cont?d) addrregister name bit 76543210
xc886/888clm functional description data sheet 35 v0.1, 2006-02 prelimary ca h adc_chctr0 reset: 00 h channel control register 0 bit field 0 lcc 0 resrsel type r rw r rw cb h adc_chctr1 reset: 00 h channel control register 1 bit field 0 lcc 0 resrsel type r rw r rw cc h adc_chctr2 reset: 00 h channel control register 2 bit field 0 lcc 0 resrsel type r rw r rw cd h adc_chctr3 reset: 00 h channel control register 3 bit field 0 lcc 0 resrsel type r rw r rw ce h adc_chctr4 reset: 00 h channel control register 4 bit field 0 lcc 0 resrsel type r rw r rw cf h adc_chctr5 reset: 00 h channel control register 5 bit field 0 lcc 0 resrsel type r rw r rw d2 h adc_chctr6 reset: 00 h channel control register 6 bit field 0 lcc 0 resrsel type r rw r rw d3 h adc_chctr7 reset: 00 h channel control register 7 bit field 0 lcc 0 resrsel type r rw r rw rmap = 0 , page 2 ca h adc_resr0l reset: 00 h result register 0 low bit field result[1:0] 0 vf drc chnr type rh r rh rh rh cb h adc_resr0h reset: 00 h result register 0 high bit field result[9:2] type rh cc h adc_resr1l reset: 00 h result register 1 low bit field result[1:0] 0 vf drc chnr type rh r rh rh rh cd h adc_resr1h reset: 00 h result register 1 high bit field result[9:2] type rh ce h adc_resr2l reset: 00 h result register 2 low bit field result[1:0] 0 vf drc chnr type rh r rh rh rh cf h adc_resr2h reset: 00 h result register 2 high bit field result[9:2] type rh d2 h adc_resr3l reset: 00 h result register 3 low bit field result[1:0] 0 vf drc chnr type rh r rh rh rh d3 h adc_resr3h reset: 00 h result register 3 high bit field result[9:2] type rh rmap = 0 , page 3 ca h adc_resra0l reset: 00 h result register 0, view a low bit field result[2:0] vf drc chnr type rh rh rh rh cb h adc_resra0h reset: 00 h result register 0, view a high bit field result[10:3] type rh cc h adc_resra1l reset: 00 h result register 1, view a low bit field result[2:0] vf drc chnr type rh rh rh rh cd h adc_resra1h reset: 00 h result register 1, view a high bit field result[10:3] type rh ce h adc_resra2l reset: 00 h result register 2, view a low bit field result[2:0] vf drc chnr type rh rh rh rh cf h adc_resra2h reset: 00 h result register 2, view a high bit field result[10:3] type rh d2 h adc_resra3l reset: 00 h result register 3, view a low bit field result[2:0] vf drc chnr type rh rh rh rh d3 h adc_resra3h reset: 00 h result register 3, view a high bit field result[10:3] type rh table 11 adc register overview (cont?d) addrregister name bit 76543210
xc886/888clm functional description data sheet 36 v0.1, 2006-02 prelimary rmap = 0 , page 4 ca h adc_rcr0 reset: 00 h result control register 0 bit field vfctr wfr fen ien 0 drct r type rw rw rw rw r rw cb h adc_rcr1 reset: 00 h result control register 1 bit field vfctr wfr fen ien 0 drct r type rw rw rw rw r rw cc h adc_rcr2 reset: 00 h result control register 2 bit field vfctr wfr fen ien 0 drct r type rw rw rw rw r rw cd h adc_rcr3 reset: 00 h result control register 3 bit field vfctr wfr fen ien 0 drct r type rw rw rw rw r rw ce h adc_vfcr reset: 00 h valid flag clear register bit field 0 vfc3 vfc2 vfc1 vfc0 type r w w w w rmap = 0 , page 5 ca h adc_chinfr reset: 00 h channel interrupt flag register bit field chinf 7 chinf 6 chinf 5 chinf 4 chinf 3 chinf 2 chinf 1 chinf 0 type rh rh rh rh rh rh rh rh cb h adc_chincr reset: 00 h channel interrupt clear register bit field chinc 7 chinc 6 chinc 5 chinc 4 chinc 3 chinc 2 chinc 1 chinc 0 type wwww w w w w cc h adc_chinsr reset: 00 h channel interrupt set register bit field chins 7 chins 6 chins 5 chins 4 chins 3 chins 2 chins 1 chins 0 type wwww w w w w cd h adc_chinpr reset: 00 h channel interrupt node pointer register bit field chinp 7 chinp 6 chinp 5 chinp 4 chinp 3 chinp 2 chinp 1 chinp 0 type rw rw rw rw rw rw rw rw ce h adc_evinfr reset: 00 h event interrupt flag register bit field evinf 7 evinf 6 evinf 5 evinf 4 0 evinf 1 evinf 0 type rh rh rh rh r rh rh cf h adc_evincr reset: 00 h event interrupt clear flag register bit field evinc 7 evinc 6 evinc 5 evinc 4 0 evinc 1 evinc 0 type wwww r w w d2 h adc_evinsr reset: 00 h event interrupt set flag register bit field evins 7 evins 6 evins 5 evins 4 0 evins 1 evins 0 type wwww r w w d3 h adc_evinpr reset: 00 h event interrupt node pointer register bit field evinp 7 evinp 6 evinp 5 evinp 4 0 evinp 1 evinp 0 type rw rw rw rw r rw rw rmap = 0 , page 6 ca h adc_crcr1 reset: 00 h conversion request control register 1 bit field ch7 ch6 ch5 ch4 0 type rwhrwhrwhrwh r cb h adc_crpr1 reset: 00 h conversion request pending register 1 bit field chp7 chp6 chp5 chp4 0 type rwhrwhrwhrwh r cc h adc_crmr1 reset: 00 h conversion request mode register 1 bit field rsv ldev clr pnd scan ensi entr engt type r w w rw rw rw rw cd h adc_qmr0 reset: 00 h queue mode register 0 bit field cev trev flush clrv 0 entr engt type wwww r rw rw table 11 adc register overview (cont?d) addrregister name bit 76543210
xc886/888clm functional description data sheet 37 v0.1, 2006-02 prelimary the timer 2 sfrs can be accessed in the standard memory area (rmap = 0). the timer 21 sfrs can be accessed in the standard memory area (rmap = 1). ce h adc_qsr0 reset: 20 h queue status register 0 bit field rsv 0 empty ev 0 fill type r r rh rh r rh cf h adc_q0r0 reset: 00 h queue 0 register 0 bit field extr ensi rf v 0 reqchnr type rh rh rh rh r rh d2 h adc_qbur0 reset: 00 h queue backup register 0 bit field extr ensi rf v 0 reqchnr type rh rh rh rh r rh d2 h adc_qinr0 reset: 00 h queue input register 0 bit field extr ensi rf 0 reqchnr type www r w table 12 timer 2 register overview addrregister name bit 76543210 c0 h t2_t2con reset: 00 h timer 2 control register bit field tf2 exf2 0 exen2 tr2 0 cp/ rl2 type rwh rwh r rw rwh r rw c1 h t2_t2mod reset: 00 h timer 2 mode register bit field t2 regs t2 rhen edge sel pren t2pre dcen type rw rw rw rw rw rw c2 h t2_rc2l reset: 00 h timer 2 reload/capture register low bit field rc2 type rwh c3 h t2_rc2h reset: 00 h timer 2 reload/capture register high bit field rc2 type rwh c4 h t2_t2l reset: 00 h timer 2 register low bit field thl2 type rwh c5 h t2_t2h reset: 00 h timer 2 register high bit field thl2 type rwh table 13 t21 register overview addrregister name bit 76543210 rmap = 1 c0 h t2con reset: 00 h timer 2 control register bit field tf2 exf2 0 0 exen2 tr2 c/t2 cp/ rl2 type rwh rwh r r rw rwh rw rw c1 h t2mod reset: 00 h timer 2 mode register bit field t2 regs t2 rhen edge sel pren t2pre dcen type rw rw rw rw rw rw c2 h rc2l reset: 00 h timer 2 reload/capture register low bit field rc2 type rwh c3 h rc2h reset: 00 h timer 2 reload/capture register high bit field rc2 type rwh c4 h t2l reset: 00 h timer 2 register low bit field thl2 type rwh c5 h t2h reset: 00 h timer 2 register high bit field thl2 type rwh table 11 adc register overview (cont?d) addrregister name bit 76543210
xc886/888clm functional description data sheet 38 v0.1, 2006-02 prelimary the ccu6 sfrs can be accessed in t he standard memory area (rmap = 0). table 14 ccu6 register overview addrregister name bit 76543210 rmap = 0 a3 h ccu6_page reset: 00 h page register for ccu6 bit field op stnr 0 page type w w r rw rmap = 0 , page 0 9a h ccu6_cc63srl reset: 00 h capture/compare shadow register for channel cc63 low bit field cc63sl type rw 9b h ccu6_cc63srh reset: 00 h capture/compare shadow register for channel cc63 high bit field cc63sh type rw 9c h ccu6_tctr4l reset: 00 h timer control register 4 low bit field t12 std t12 str 0 dtres t12 res t12rs t12rr type w w r w w w w 9d h ccu6_tctr4h reset: 00 h timer control register 4 high bit field t13 std t13 str 0 t13 res t13rs t13rr type w w r w w w 9e h ccu6_mcmoutsl reset: 00 h multi-channel mode output shadow register low bit field strm cm 0 mcmps type w r rw 9f h ccu6_mcmoutsh reset: 00 h multi-channel mode output shadow register high bit field strhp 0 curhs exphs type w r rw rw a4 h ccu6_isrl reset: 00 h capture/compare interrupt status reset register low bit field rt12p m rt12o m rcc62 f rcc62 r rcc61 f rcc61 r rcc60 f rcc60 r type wwww w w w w a5 h ccu6_isrh reset: 00 h capture/compare interrupt status reset register high bit field rstr ridle rwhe rche 0 rtrpf rt13 pm rt13 cm type wwww r w w w a6 h ccu6_cmpmodifl reset: 00 h compare state modification register low bit field 0 mcc63 s 0 mcc62 s mcc61 s mcc60 s type r w r w w w a7 h ccu6_cmpmodifh reset: 00 h compare state modification register high bit field 0 mcc63 r 0 mcc62 r mcc61 r mcc60 r type r w r w w w fa h ccu6_cc60srl reset: 00 h capture/compare shadow register for channel cc60 low bit field cc60sl type rwh fb h ccu6_cc60srh reset: 00 h capture/compare shadow register for channel cc60 high bit field cc60sh type rwh fc h ccu6_cc61srl reset: 00 h capture/compare shadow register for channel cc61 low bit field cc61sl type rwh fd h ccu6_cc61srh reset: 00 h capture/compare shadow register for channel cc61 high bit field cc61sh type rwh fe h ccu6_cc62srl reset: 00 h capture/compare shadow register for channel cc62 low bit field cc62sl type rwh ff h ccu6_cc62srh reset: 00 h capture/compare shadow register for channel cc62 high bit field cc62sh type rwh
xc886/888clm functional description data sheet 39 v0.1, 2006-02 prelimary rmap = 0 , page 1 9a h ccu6_cc63rl reset: 00 h capture/compare register for channel cc63 low bit field cc63vl type rh 9b h ccu6_cc63rh reset: 00 h capture/compare register for channel cc63 high bit field cc63vh type rh 9c h ccu6_t12prl reset: 00 h timer t12 period register low bit field t12pvl type rwh 9d h ccu6_t12prh reset: 00 h timer t12 period register high bit field t12pvh type rwh 9e h ccu6_t13prl reset: 00 h timer t13 period register low bit field t13pvl type rwh 9f h ccu6_t13prh reset: 00 h timer t13 period register high bit field t13pvh type rwh a4 h ccu6_t12dtcl reset: 00 h dead-time control register for timer t12 low bit field dtm type rw a5 h ccu6_t12dtch reset: 00 h dead-time control register for timer t12 high bit field 0 dtr2 dtr1 dtr0 0 dte2 dte1 dte0 type r rhrhrh r rw rw rw a6 h ccu6_tctr0l reset: 00 h timer control register 0 low bit field ctm cdir ste12 t12r t12 pre t12clk type rw rh rh rh rw rw a7 h ccu6_tctr0h reset: 00 h timer control register 0 high bit field 0 ste13 t13r t13 pre t13clk type r rh rh rw rw fa h ccu6_cc60rl reset: 00 h capture/compare register for channel cc60 low bit field cc60vl type rh fb h ccu6_cc60rh reset: 00 h capture/compare register for channel cc60 high bit field cc60vh type rh fc h ccu6_cc61rl reset: 00 h capture/compare register for channel cc61 low bit field cc61vl type rh fd h ccu6_cc61rh reset: 00 h capture/compare register for channel cc61 high bit field cc61vh type rh fe h ccu6_cc62rl reset: 00 h capture/compare register for channel cc62 low bit field cc62vl type rh ff h ccu6_cc62rh reset: 00 h capture/compare register for channel cc62 high bit field cc62vh type rh rmap = 0 , page 2 9a h ccu6_t12msell reset: 00 h t12 capture/compare mode select register low bit field msel61 msel60 type rw rw 9b h ccu6_t12mselh reset: 00 h t12 capture/compare mode select register high bit field dbyp hsync msel62 type rw rw rw table 14 ccu6 register overview (cont?d) addrregister name bit 76543210
xc886/888clm functional description data sheet 40 v0.1, 2006-02 prelimary 9c h ccu6_ienl reset: 00 h capture/compare interrupt enable register low bit field ent12 pm ent12 om encc 62f encc 62r encc 61f encc 61r encc 60f encc 60r type rw rw rw rw rw rw rw rw 9d h ccu6_ienh reset: 00 h capture/compare interrupt enable register high bit field enstr en idle en whe en che 0 en trpf ent13 pm ent13 cm type rw rw rw rw r rw rw rw 9e h ccu6_inpl reset: 40 h capture/compare interrupt node pointer register low bit field inpche inpcc62 inpcc61 inpcc60 type rw rw rw rw 9f h ccu6_inph reset: 39 h capture/compare interrupt node pointer register high bit field 0 inpt13 inpt12 inperr type r rw rw rw a4 h ccu6_issl reset: 00 h capture/compare interrupt status set register low bit field st12p m st12o m scc62 f scc62 r scc61 f scc61 r scc60 f scc60 r type wwww w w w w a5 h ccu6_issh reset: 00 h capture/compare interrupt status set register high bit field sstr sidle swhe sche swhc strpf st13 pm st13 cm type wwww w w w w a6 h ccu6_pslr reset: 00 h passive state level register bit field psl63 0 psl type rwh r rwh a7 h ccu6_mcmctr reset: 00 h multi-channel mode control register bit field 0 swsyn 0 swsel type r rw r rw fa h ccu6_tctr2l reset: 00 h timer control register 2 low bit field 0 t13ted t13tec t13 ssc t12 ssc type r rw rw rw rw fb h ccu6_tctr2h reset: 00 h timer control register 2 high bit field 0 t13rsel t12rsel type r rw rw fc h ccu6_modctrl reset: 00 h modulation control register low bit field mc men 0 t12moden type rw r rw fd h ccu6_modctrh reset: 00 h modulation control register high bit field ect13 o 0 t13moden type rw r rw fe h ccu6_trpctrl reset: 00 h trap control register low bit field 0 trpm2 trpm1 trpm0 type r rw rw rw ff h ccu6_trpctrh reset: 00 h trap control register high bit field trppe n trpen 13 trpen type rw rw rw rmap = 0 , page 3 9a h ccu6_mcmoutl reset: 00 h multi-channel mode output register low bit field 0 r mcmp type r rh rh 9b h ccu6_mcmouth reset: 00 h multi-channel mode output register high bit field 0 curh exph type r rh rh 9c h ccu6_isl reset: 00 h capture/compare interrupt status register low bit field t12pm t12om icc62f icc62 r icc61f icc61 r icc60f icc60 r type rh rh rh rh rh rh rh rh 9d h ccu6_ish reset: 00 h capture/compare interrupt status register high bit field str idle whe che trps trpf t13pm t13cm type rh rh rh rh rh rh rh rh 9e h ccu6_pisel0l reset: 00 h port input select register 0 low bit field istrp iscc62 iscc61 iscc60 type rw rw rw rw table 14 ccu6 register overview (cont?d) addrregister name bit 76543210
xc886/888clm functional description data sheet 41 v0.1, 2006-02 prelimary the uart1 sfrs can be accessed in the mapped memory area (rmap = 1). the ssc sfrs can be accessed in the standard memory area (rmap = 0). 9f h ccu6_pisel0h reset: 00 h port input select register 0 high bit field ist12hr ispos2 ispos1 ispos0 type rw rw rw rw a4 h ccu6_pisel2 reset: 00 h port input select register 2 bit field 0 ist13hr type r rw fa h ccu6_t12l reset: 00 h timer t12 counter register low bit field t12cvl type rwh fb h ccu6_t12h reset: 00 h timer t12 counter register high bit field t12cvh type rwh fc h ccu6_t13l reset: 00 h timer t13 counter register low bit field t13cvl type rwh fd h ccu6_t13h reset: 00 h timer t13 counter register high bit field t13cvh type rwh fe h ccu6_cmpstatl reset: 00 h compare state register low bit field 0 cc63 st ccpo s2 ccpo s1 ccpo s0 cc62 st cc61 st cc60 st type r rhrhrh rh rh rh rh ff h ccu6_cmpstath reset: 00 h compare state register high bit field t13im cout 63ps cout 62ps cc62 ps cout 61ps cc61 ps cout 60ps cc60 ps type rwhrwhrwhrwh rwh rwh rwh rwh table 15 uart1 register overview addrregister name bit 76543210 rmap = 1 c8 h scon reset: 00 h serial channel control register bit field sm0 sm1 sm2 ren tb8 rb8 ti ri type rw rw rw rw rw rwh rwh rwh c9 h sbuf reset: 00 h serial data buffer register bit field val type rwh ca h bcon reset: 00 h baud rate control register bit field 0 brpre r type r rw rw cb h bg reset: 00 h baud rate timer/reload register bit field br_value type rwh cc h fdcon reset: 00 h fractional divider control register bit field 0 ndov fdm fden type r rwh rw rw cd h fdstep reset: 00 h fractional divider reload register bit field step type rw ce h fdres reset: 00 h fractional divider result register bit field result type rh table 16 ssc register overview addrregister name bit 76543210 rmap = 0 a9 h ssc_pisel reset: 00 h port input select register bit field 0 cis sis mis type r rw rw rw table 14 ccu6 register overview (cont?d) addrregister name bit 76543210
xc886/888clm functional description data sheet 42 v0.1, 2006-02 prelimary the multican sfrs can be accessed in the standard memory area (rmap = 0). the ocds sfrs can be accessed in the mapped memory area (rmap = 1). aa h ssc_conl reset: 00 h control register low programming mode bit field lb po ph hb bm type rw rw rw rw rw operating mode bit field 0 bc type r rh ab h ssc_conh reset: 00 h control register high programming mode bit field en ms 0 aren ben pen ren ten type rw rw r rw rw rw rw rw operating mode bit field en ms 0 bsy be pe re te type rw rw r rh rwh rwh rwh rwh ac h ssc_tbl reset: 00 h transmitter buffer register low bit field tb_value type rw ad h ssc_rbl reset: 00 h receiver buffer register low bit field rb_value type rh ae h ssc_brl reset: 00 h baudrate timer reload register low bit field br_value type rw af h ssc_brh reset: 00 h baudrate timer reload register high bit field br_value type rw table 17 multican register overview addrregister name bit 76543210 rmap = 0 d8 h adcon reset: 00 h can address/data control register bit field v3 v2 v1 v0 auad bsy rwen type rw rw rw rw rw rh rw d9 h adl reset: 00 h can address low register bit field ca9 ca8 ca7 ca6 ca5 ca4 ca3 ca2 type rwhrwhrwhrwhrwhrwhrwhrwh da h adh reset: 00 h can address high register bit field 0 ca13 ca12 ca11 ca10 type r rwh rwh rwh rwh db h data0 reset: 00 h can data register 0 bit field cd type rwh dc h data1 reset: 00 h can data register 1 bit field cd type rwh dd h data2 reset: 00 h can data register 2 bit field cd type rwh de h data3 reset: 00 h can data register 3 bit field cd type rwh table 18 ocds register overview addrregister name bit 76543210 rmap = 1 e9 h mmcr2 reset: 1u h monitor mode control 2 register bit field stmo de exbc dsusp mbco n altdi mmep mmod e jena type rw rw rw rwh rw rwh rh rh f1 h mmcr reset: 00 h monitor mode control register bit field mexit _p mexit 0 mstep mram s_p mram s trf rrf type w hw r rw w rwh rh rh table 16 ssc register overview
xc886/888clm functional description data sheet 43 v0.1, 2006-02 prelimary f2 h mmsr reset: 00 h monitor mode status register bit field mbca m mbcin exbf swbf hwb3 f hwb2 f hwb1 f hwb0 f type rw rwh rwh rwh rwh rwh rwh rwh f3 h mmbpcr reset: 00 h breakpoints control register bit field swbc hwb3c hwb2c hwb1 c hwb0c type rw rw rw rw rw f4 h mmicr reset: 00 h monitor mode interrupt control register bit field dvect dretr com rst mst sel mmuie _p mmuie rrie_ p rrie type rwh rwh rwh rh w rw w rw f5 h mmdr reset: 00 h monitor mode data transfer register receive bit field mmrr type rh transmit bit field mmtr type w f6 h hwbpsr reset: 00 h hardware breakpoints select register bit field 0 bpsel _p bpsel type r w rw f7 h hwbpdr reset: 00 h hardware breakpoints data register bit field hwbpxx type rw eb h mmwr1 reset: 00 h monitor work register 1 bit field mmwr1 type rw ec h mmwr2 reset: 00 h monitor work register 2 bit field mmwr2 type rw table 18 ocds register overview (cont?d) addrregister name bit 76543210
xc886/888clm functional description data sheet 44 v0.1, 2006-02 prelimary 3.3 flash memory the flash memory provides an embedded user-programmable non-volatile memory, allowing fast and reliable storage of user code and data. it is operated from a single 2.5 v supply from the embedded voltage regulator (evr) and does not require additional programming or erasing voltage. the sector ization of the flash memory allows each sector to be erased independently. features: ? in-system programming (isp) via uart ? in-application programming (iap) ? error correction code (ecc) for dynamic correction of single-bit errors ? background program and erase operations for cpu load minimization ? support for aborting erase operation ? minimum program width 1) of 32-byte for d-flash and 64-byte for p-flash ? 1-sector minimum erase width ? 1-byte read access ? 135.1 ns minimum read access time (3 t cclk @ f cclk =24mhz7.5% 2) ) ? operating supply voltage: 2.5 v 7.5 % ? program time: 2.3 ms 3) ? erase time: 120 ms 3) table 19 shows the flash data retention and endurance targets 4) . 1) p-flash: 64-byte wordline can only be programmed once, i.e., one gate disturb allowed. d-flash: 32-byte wordline can be programmed twice, i.e., two gate disturbs allowed. 2) f sys =96mhz7.5% (f cclk = 24 mhz 7.5 %) is the maximum frequency range for flash read access. 3) f sys = 96 mhz 7.5% is the only frequency range for flash programming and erasing. f sysmin is used for obtaining the worst case timing. table 19 flash data retention and endurance targets retention up to endurance up to programming temperature size 20 years 1,000 cycles 0 ? 100c 15 kbytes 5 years 10,000 cycles -40 ? 125c 896 bytes 2 years 70,000 cycles -40 ? 125c 512 bytes 2 years 100,000 cycles -40 ? 125c 128 bytes 4) specification according to operating temperature profile with 0.2ppm error rate.
xc886/888clm functional description data sheet 45 v0.1, 2006-02 prelimary 3.3.1 flash bank sectorization the xc886/888 product family offers flash devices with either 24 kbytes or 32 kbytes of embedded flash memory. each flash devi ce consists of program flash (p-flash) bank(s) and a single data flash (d-flash) bank with different sectorization shown in figure 11 . both types can be used for code and data storage. the label ?data? neither implies that the d-flash is mapped to the da ta memory region, nor that it can only be used for data storage. it is used to distin guish the different flash bank sectorizations. the xc886/888 rom devices offer a single 4-kbyte d-flash bank. figure 11 flash bank sectorization the internal structure of each flash bank r epresents a sector architecture for flexible erase capability. the minimum erase width is always a complete sector, and sectors can be erased separately or in parallel. cont rary to standard eproms, erased flash memory cells contain 0s. the d-flash bank is divided into more physical sectors for extended erasing and reprogramming capability; even numbers for ea ch sector size are provided to allow greater flexibility and the ability to adapt to a wide range of application requirements. sector 9: 128-byte sector 5: 256-byte sector 3: 512-byte sector 1: 1-kbyte sector 0: 1-kbyte sector 7: 128-byte sector 8: 128-byte sector 6: 128-byte sector 4: 256-byte sector 2: 512-byte sector 0: 3.75-kbyte p-flash d-flash sector 2: 128-byte sector 1: 128-byte
xc886/888clm functional description data sheet 46 v0.1, 2006-02 prelimary 3.3.2 flash programming width for the p-flash banks, a programmed wordli ne (wl) must be eras ed before it can be reprogrammed as the flash cells can only wit hstand one gate disturb. this means that the entire sector containing the wl must be erased since it is impossible to erase a single wl. for the d-flash bank, the same wl can be programmed twice before erasing is required as the flash cells are able to withstand tw o gate disturbs. hence, it is possible to program the same wl, for example, wit h 16 bytes of data in two times (see figure 12 ). figure 12 d-flash programming note: when programming a d-flash wl the second time, the previously programmed flash memory cells (whether 0s or 1s) should be reprogrammed with 0s to retain its original contents and to prevent ?over-programming?. 0000 ?.. 0000 h 0000 ?.. 0000 h 32 bytes (1 wl) 1111 ?.. 1111 h 0000 ?.. 0000 h 16 bytes 16 bytes 0000 ?.. 0000 h 1111 ?.. 1111 h flash memory cells 32-byte write buffers 1111 ?.. 0000 h 1111 ?.. 1111 h 0000 ?.. 0000 h 1111 ?.. 0000 h program 1 program 2 note: a flash memory cell can be programmed from 0 to 1, but not from 1 to 0.
xc886/888clm functional description data sheet 47 v0.1, 2006-02 prelimary 3.4 interrupt system the xc800 core supports one non-maskable interrupt (nmi) and 14 maskable interrupt requests. in addition to the standard interru pt functions supported by the core, e.g., configurable interrupt priority and interr upt masking, the xc886/888 interrupt system provides extended interrupt s upport capabilities such as the mapping of each interrupt vector to several interrupt sources to increase the number of interrupt sources supported, and additional st atus registers for detecting and determining the interrupt source. 3.4.1 interrupt source figure 13 to figure 17 give a general overview of the interrupt sources and illustrates the request and control flags. figure 13 non-maskable interrupt request sources 0073 h nmiwdt nmicon.0 wdt overflow >=1 non maskable interrupt nmipll nmicon.1 pll loss of lock nmiflash flash operation complete nmivdd nmicon.4 vdd pre-warning fnmiwdt nmiisr.0 fnmipll nmiisr.1 fnmiflash nmiisr.2 fnmivdd nmiisr.4 nmivddp nmicon.5 vddp pre-warning fnmivddp nmiisr.5 nmiecc nmicon.6 flash ecc error fnmiecc nmiisr.6
xc886/888clm functional description data sheet 48 v0.1, 2006-02 prelimary figure 14 interrupt request sources (part 1) highest lowest priority level bit-addressable request flag is cleared by hardware 000b h et0 ien0.1 tf0 tcon.5 timer 0 overflow 001b h et1 ien0.3 tf1 tcon.7 timer 1 overflow ip.1/ iph.1 ip.3/ iph.3 0023 h es ien0.4 ip.4/ iph.4 >=1 ri scon.0 ti scon.1 uart 0003 h ex0 ien0.0 ie0 tcon.1 ip.0/ iph.0 0013 h ip.2/ iph.2 it0 tcon.0 exint0 exicon0.0/1 exint0 ircon0.0 eint0 ex1 ien0.2 ie1 tcon.3 it1 tcon.2 exint1 exicon0.2/3 exint1 ircon0.1 eint1 ien0.7 ea p o l l i n g s e q u e n c e
xc886/888clm functional description data sheet 49 v0.1, 2006-02 prelimary figure 15 interrupt request sources (part 2) highest lowest priority leve l bit-addressable request flag is cleared by hardware 002b h ip.5/ iph.5 p o l l i n g s e q u e n c e 0033 h eadc ien1.0 ip1.0/ iph1.0 >=1 adcsrc0 ircon1.3 adc_0 adc_1 adcsrc1 ircon1.4 cansrc1 ircon1.5 mcan_1 et2 ien0.5 >=1 tf2 t2_t2con.7 exf2 t2_t2con.6 timer 2 overflow exen2 t2_t2con.3 cansrc0 ircon2.0 mcan_0 ndov fdcon.2 normal divider overflow synen fdcon.6 eofsyn fdcon.4 end of syn byte errsyn fdcon.5 syn byte error ien0.7 ea cansrc2 ircon1.6 mcan_2 t2ex edges el t2_t2mod.5 >=1
xc886/888clm functional description data sheet 50 v0.1, 2006-02 prelimary figure 16 interrupt request sources (part 3) highest lowest priority leve l bit-addressable request flag is cleared by hardware p o l l i n g s e q u e n c e 003b h essc ien1.1 ip1.1/ iph1.1 >=1 tir ircon1.1 rir ircon1.2 eir ircon1.0 ssc_eir ssc_tir ssc_rir ien0.7 ea 0043 h ip1.2/ iph1.2 exint2 exicon0.4/5 exint2 ircon0.2 eint2 ex2 ien1.2 irdy mdustat.0 mdu_0 mdu_1 ierr mdustat.1 eoc cdstatc.2 cordic >=1 >=1 ri uart1_scon.0 ti uart1_scon.1 uart1 ndov normal divider overflow uart1_fdcon.2 tf2 t21_t2con.7 exf2 t21_t2con.6 timer 21 overflow exen2 t21_t2con.3 t21ex edges el t21_t2mod.5 >=1
xc886/888clm functional description data sheet 51 v0.1, 2006-02 prelimary figure 17 interrupt request sources (part 4) ien0.7 highest lowest priority leve l bit-addressable request flag is cleared by hardware p o l l i n g s e q u e n c e ea 004b h exm ien1.3 ip1.3/ iph1.3 >=1 exint5 exicon1.2/3 exint5 ircon0.5 eint5 exint3 exicon1.0/1 exint4 ircon0.4 eint4 exint3 exicon0.6/7 exint3 ircon0.3 eint3 exint6 exicon1.4/5 exint6 ircon0.6 eint6 cansrc3 ircon2.4 mcan_3
xc886/888clm functional description data sheet 52 v0.1, 2006-02 prelimary figure 18 interrupt request sources (part 5) highest lowest priority leve l p o l l i n g s e q u e n c e ien0.7 bit-addressable request flag is cleared by hardware ea 0053 h ccu6 interrupt node 0 ip1.4/ iph1.4 005b h ip1.5/ iph1.5 0063 h ip1.6/ iph1.6 006b h ip1.7/ iph1.7 eccip0 ien1.4 eccip1 ien1.5 eccip2 ien1.6 eccip3 ien1.7 mcansrc4 ircon3.1 mcan_4 >=1 ccu6 interrupt node 1 mcansrc5 ircon3.5 mcan_5 >=1 ccu6 interrupt node 2 mcansrc6 ircon4.1 mcan_6 >=1 ccu6 interrupt node 3 mcansrc7 ircon4.5 mcan_7 >=1 ccu6sr0 ircon3.0 ccu6sr1 ircon3.4 ccu6sr2 ircon4.0 ccu6src3 ircon4.4
xc886/888clm functional description data sheet 53 v0.1, 2006-02 prelimary figure 19 interrupt request sources (part 6) ccu6 interrupt node 0 ccu6 interrupt node 1 ccu6 interrupt node 2 ccu6 interrupt node 3 >=1 cc60 encc60r ienl.0 icc60r isl.0 encc60f ienl.1 icc60f isl.1 inpl.1 inpl.0 >=1 cc61 encc61r ienl.2 icc61r isl.2 encc61f ienl.3 icc61f isl.3 inpl.3 inpl.2 >=1 cc62 encc62r ienl.4 icc62r isl.4 encc62f ienl.5 icc62f isl.5 inpl.5 inpl.4 >=1 ent12om ienl.6 t12om isl.6 ent12pm ienl.7 t12pm isl.7 inph.3 inph.2 >=1 ent13cm ienh.0 t13cm ish.0 ent13pm ienh.1 t13pm ish.1 inph.5 inph.4 >=1 entrpf ienh.2 trpf ish.2 enwhe ienh.5 whe ish.5 inph.1 inph.0 t12 one match t12 period match t13 compare match t13 period match ctrap wrong hall event inpl.7 inpl.6 enche ienh.4 che ish.4 correct hall event >=1 enstr ienh.7 str ish.7 multi-channel shadow transfer .
xc886/888clm functional description data sheet 54 v0.1, 2006-02 prelimary 3.4.2 interrupt source and vector each interrupt source has an associated interrupt vector addr ess. this vector is accessed to service the corresponding interrupt source request. the interrupt service of each interrupt source can be individually enabled or disabled via an enable bit. the assignment of the xc886/888 interrupt source s to the interrupt vector addresses and the corresponding interrupt source enable bits are summarized in table 20 . table 20 interrupt vector addresses interrupt source vector address assignment for xc886/ 888 enable bit sfr nmi 0073 h watchdog timer nmi nmiwdt nmicon pll nmi nmipll flash nmi nmiflash vddc prewarning nmi nmivdd vddp prewarning nmi nmivddp flash ecc nmi nmiecc xintr0 0003 h external interrupt 0 ex0 ien0 xintr1 000b h timer 0 et0 xintr2 0013 h external interrupt 1 ex1 xintr3 001b h timer 1 et1 xintr4 0023 h uart es xintr5 002b h t2 et2 uart fractional divider (normal divider overflow) multican node 0 lin
xc886/888clm functional description data sheet 55 v0.1, 2006-02 prelimary xintr6 0033 h multican nodes 1 and 2 eadc ien1 adc[1:0] xintr7 003b h ssc essc xintr8 0043 h external interrupt 2 ex2 t21 cordic uart1 uart1 fractional divider (normal divider overflow) mdu[1:0] xintr9 004b h external interrupt 3 exm external interrupt 4 external interrupt 5 external interrupt 6 multican node 3 xintr10 0053 h ccu6 inp0 eccip0 multican node 4 xintr11 005b h ccu6 inp1 eccip1 multican node 5 xintr12 0063 h ccu6 inp2 eccip2 multican node 6 xintr13 006b h ccu6 inp3 eccip3 multican node 7 table 20 interrupt vector addresses (cont?d)
xc886/888clm functional description data sheet 56 v0.1, 2006-02 prelimary 3.4.3 interrupt priority each interrupt source, except for nmi, can be individually programmed to one of the four possible priority levels. the nmi has the highest priority and supersedes all other interrupts. two pairs of interrupt priority registers (ip and iph, ip1 and iph1) are available to program the priority le vel of each non-nmi interrupt vector. a low-priority interrupt can be interrupted by a high-priority interrupt, but not by another interrupt of the same or lower priority. further, an interrupt of the highest priority cannot be interrupted by any other interrupt source. if two or more requests of different prio rity levels are received simultaneously, the request of the highest priority is serviced first. if requests of the same priority are received simultaneously, then an internal polling sequence determines which request is serviced first. thus, within each priority le vel, there is a second priority structure determined by the polling sequence shown in table 21 . table 21 priority structure within interrupt level source level non-maskable interrupt (nmi) (highest) external interrupt 0 1 timer 0 interrupt 2 external interrupt 1 3 timer 1 interrupt 4 uart interrupt 5 timer 2 , uart fractional divider, mcan, lin interrupt 6 adc, mcan interrupt 7 ssc interrupt 8 external interrupt 2, timer 21, uart1, uart1 fractional divider, mdu, cordic interrupt 9 external interrupt [6:3], mcan interrupt 10 ccu6 interrupt node pointer 0, mcan interrupt 11 ccu6 interrupt node pointer 1, mcan interrupt 12 ccu6 interrupt node pointer 2, mcan interrupt 13 ccu6 interrupt node pointer 3, mcan interrupt 14
xc886/888clm functional description data sheet 57 v0.1, 2006-02 prelimary 3.5 parallel ports the xc886 has 34 port pins organized into five parallel ports, port 0 (p0) to port 4 (p4), while the xc888 has 48 port pins organized into six parallel ports, port 0 (p0) to port 6 (p6). each pin has a pair of internal pull-u p and pull-down devices that can be individually enabled or disabled. ports p0, p1, p3, p4 and p5 are bidirectional and can be used as general purpose input/output (gpi o) or to perform alternate input/output functions for the on-chip peripherals. when configured as an output, the open drain mode can be selected. port p2 is an input-only port , providing general purpose input functions, alternate input functions for the on-chip per ipherals, and also analog inputs for the analog-to-digital converter (adc). bidirectional port features: ? configurable pin direction ? configurable pull-up/pull-down devices ? configurable open drain mode ? transfer of data through digital input s and outputs (general purpose i/o) ? alternate input/output for on-chip peripherals input port features: ? configurable input driver ? configurable pull-up/pull-down devices ? receive of data through digital input (general purpose input) ? alternate input for on-chip peripherals ? analog input for adc module
xc886/888clm functional description data sheet 58 v0.1, 2006-02 prelimary figure 20 general structure of bidirectional port px_od open drain control register px_data data register internal bus altdataout 2 px_altsel0 alternate select register 0 px_altsel1 alternate select register 1 altdatain pin px_puden pull-up/pull-down enable register px_pudsel pull-up/pull-down select register altdataout1 pad out in output driver input driver 00 schmitt trigger enable enable pull up device pull down device vddp enable enable px_dir direction register 01 10 altdataout 3 11
xc886/888clm functional description data sheet 59 v0.1, 2006-02 prelimary figure 21 general structure of input port px_data data regist er internal bus altdatain px_puden pull-up/pull-down enable regist er px_pudsel pull-up/pull-down select register in input dri ver schmitt trigger analogin px_dir direct ion regist er pad pull up device pull down device vddp enable enable enable pin
xc886/888clm functional description data sheet 60 v0.1, 2006-02 prelimary 3.6 power supply system with embedded voltage regulator the xc886/888 microcontroller requires two different levels of power supply: ? 3.3 v or 5.0 v for the embedded voltage regulator (evr) and ports ? 2.5 v for the core, memory, on-chip oscillator, and peripherals figure 22 shows the xc886/888 power supply syst em. a power supply of 3.3 v or 5.0 v must be provided from the external power s upply pin. the 2.5 v power supply for the logic is generated by the evr. the evr helps to reduce the power consumption of the whole chip and the complexity of the application board design. the evr consists of a main voltage regulat or and a low power voltage regulator. in active mode, both voltage regulators ar e enabled. in power-down mode, the main voltage regulator is switched off, while the low power voltage regulator continues to function and provide power supply to the system with low power consumption. figure 22 xc886/888 power supply system evr features: ? input voltage (v ddp ): 3.3 v/5.0 v ? output voltage (v ddc ): 2.5 v 7.5% ? low power voltage regulator provided in power-down mode ?v ddc and v ddp prewarning detection ?v ddc brownout detection on-chip osc cpu & memory v ddc (2.5v) v ddp (3.3v/5.0v) v ssp gpio ports (p0-p5) evr peripheral logic flash adc pll xtal1& xtal2
xc886/888clm functional description data sheet 61 v0.1, 2006-02 prelimary 3.7 reset control the xc886/888 has five types of reset: power-on reset, hardware reset, watchdog timer reset, power-down wake-up reset, and brownout reset. when the xc886/888 is first powered up, the status of certain pins (see table 23 ) must be defined to ensure proper start operation of the device. at the end of a reset sequence, the sampled values are latched to select the desired boot op tion, which cannot be modified until the next power-on reset or hardware reset. this guarantees stable conditions during the norma l operation of the device. in order to power up the system pro perly, the external reset pin reset must be asserted until v ddc reaches 0.9*v ddc . the delay of external reset can be realized by an external capacitor at reset pin. this capacitor value must be selected so that v reset reaches 0.4 v, but not before v ddc reaches 0.9* v ddc. a typical application example is shown in figure 23 . for a voltage regulator with idd max = 100 ma, the v ddp capacitor value is 10 f. v ddc capacitor value is 220 nf. the capacitor connected to reset pin is 100 nf. typically, the time taken for v ddc to reach 0.9*v ddc is less than 50 s once v ddp reaches 2.3v. hence, based on th e condition that 10% to 90% v ddp (slew rate) is less than 500 s, the reset pin should be held low for 500 s typically. see figure 24 . figure 23 reset circuitry vssp vddp vddc vssc 3 - 5v / e.g. 100ma reset evr vr vin e.g. 10uf 220nf typ. 100nf xc886/888 30k
xc886/888clm functional description data sheet 62 v0.1, 2006-02 prelimary figure 24 v ddp, v ddc and v reset during power-on reset the second type of reset in xc886/888 is the hardware reset. this reset function can be used during normal operation or when the chip is in power-down mode. a reset input pin reset is provided for the hardware reset. the watchdog timer (wdt) module is also capabl e of resetting the device if it detects a malfunction in the system. another type of reset that needs to be de tected is a reset while the device is in power-down mode (wake-up reset). while t he contents of the static ram are undefined after a power-on reset, they are well defined after a wake-up reset from power-down mode. vddp reset wit h capacitor 2.3v vddc < 0.4v 0.9*vddc 0v 5v 5v 2.5v voltage voltage time time typ. < 50 us
xc886/888clm functional description data sheet 63 v0.1, 2006-02 prelimary 3.7.1 module reset behavior table 22 shows how the functions of the xc886/888 are affect ed by the various reset types. a ? ? means that this functi on is reset to its default state. 3.7.2 booting scheme when the xc886/888 is reset, it must identify the type of conf iguration with which to start the different modes once the reset sequenc e is complete. thus, boot configuration information that is required for activation of special modes and conditions needs to be applied by the external world through input pins. after power-on reset or hardware reset, the pins mbc, tms and p0.0 collectivel y select the different boot options. table 23 shows the available boot opt ions in the xc886/888. table 22 effect of reset on device functions module/ function wake-up reset watchdog reset hardware reset power-on reset brownout reset cpu core peripherals on-chip static ram not affected, reliable not affected, reliable not affected, reliable affected, un- reliable affected, un- reliable oscillator, pll not affected port pins evr the voltage regulator is switched on not affected flash nmi disabled disabled table 23 xc886/888 boot selection mbc tms p0.0 type of mode pc start value 1 0 x user mode; on-chip osc/pll non-bypassed 0000 h 0 0 x bsl mode; on-chip osc/pll non-bypassed 0000 h 0 1 0 ocds mode; on-chip osc/pll non- bypassed 0000 h 1 1 0 user (jtag) mode 1) ; on-chip osc/pll non- bypassed (normal) 1) normal user mode with standard jtag (tck,tdi,tdo) pins for hot-attach purpose. 0000 h
xc886/888clm functional description data sheet 64 v0.1, 2006-02 prelimary 3.8 clock generation unit the clock generation unit (cgu) allows great flexibility in the clock generation for the xc886/888. the power consumption is indirect ly proportional to the frequency, whereas the performance of the microcontroller is di rectly proportional to the frequency. during user program execution, the frequency can be programmed for an optimal ratio between performance and power consumption. th erefore the power consumption can be adapted to the actual application state. features: ? phase-locked loop (pll) for multiplying clock source by different factors ? pll base mode ? prescaler mode ? pll mode ? power-down mode support the cgu consists of an oscillator circuit and a pll. in the xc886/888, the oscillator can be from either of these two sources: the on-chip oscillator (9.6 mhz) or the external oscillator (3 mhz to 12 mhz). the term ?oscillator? is used to refer to both on-chip oscillator and external oscillator, unless ot herwise stated. after the reset, the on-chip oscillator will be used by default.the external oscillator can be selected via software. in addition, the pll provides a fail-safe logic to perform oscillator run and loss-of-lock detection. this allows emergency routin es to be executed for system recovery or to perform system shut down.
xc886/888clm functional description data sheet 65 v0.1, 2006-02 prelimary figure 25 cgu block diagram direct drive (pll bypass operation) during pll bypass operation, the system clo ck has the same frequency as the external clock source. for the xc886/888, the pll bypass cannot be set active. hence, the direct drive mode is not available for use. pll base mode the system clock is derived from the vco base frequency clock divided by the k factor. both vco bypass and pll bypass must be inactive for this pll mode. prescaler mode (vco bypass operation) in vco bypass operation, the system clock is derived from the oscillator clock, divided by the p and k factors. pll core lock detect n:1 p:1 fvco fn fp osc fail detect osc fosc k:1 fsys ndiv oscdisc oscr lock vcobyp pllbyp f sys f osc = f sys f vcobase 1 k --- - = f sys f osc 1 pk ------------- =
xc886/888clm functional description data sheet 66 v0.1, 2006-02 prelimary pll mode the system clock is derived from the oscillat or clock, multiplied by the n factor, and divided by the p and k factors. both vco bypass and pll bypass must be inactive for this pll mode. the pll mode is used during normal system operation. . system frequency selection for the xc886/888, the value of p is fixed to 1. in order to obtain the required fsys, the value of n and k can be selected by bits ndiv and kdiv respectively for different oscillator inputs. the output frequency must always be configured for 96 mhz. table 24 provides examples on how f sys = 96 mhz can be obtained for the different oscillator sources. table 25 shows the vco range for the xc886/888. 3.8.1 resonator circuitry figure 26 shows the recommended ceramic resonator circuitry. when using an external resonator, its frequency can be within the range of 3 mhz to 12 mhz. a resonator load circuitry must be used, connected to both pins, xtal1 and xtal2. it normally consists of two load capacitances c 1 and c 2 , and in some cases, a feedback (r f ) and/or damp (r d ) resistor might be necessary. table 24 system frequency (f sys =96mhz) oscillator fosc n p k fsys on-chip 9.6 mhz 20 1 2 96 mhz external 8 mhz 24 1 2 96 mhz 6 mhz 32 1 2 96 mhz 4 mhz 48 1 2 96 mhz table 25 vco range f vcomin f vcomax f vcofreemin f vcofreemax unit 150 200 20 80 mhz 100 150 10 80 mhz f sys f osc n pk ------------- =
xc886/888clm functional description data sheet 67 v0.1, 2006-02 prelimary figure 26 external ceramic resonator circuitry note: the manufacturer of the ceramic res onator should check the resonator circuitry and make recommendations for the c 1 , c 2 , r f and r d values to be used for stable start-up behavior. xc886/888 c 1 c 2 xtal1 xtal2 r d r f ceramic resonator
xc886/888clm functional description data sheet 68 v0.1, 2006-02 prelimary 3.8.2 clock management the cgu generates all clock signals requir ed within the microcontroller from a single clock, f sys . during normal system operation, the typical frequencies of the different modules are as follow: ? cpu clock: cclk, sclk = 24 mhz ? fast clock (used by mcan): fclk = 24 or 48 mhz ? peripheral clock: pclk = 24 mhz ? flash interface clock: cclk2 = 96 mhz and cclk = 24 mhz in addition, different clock frequency can out put to pin clkout(p0.0 or p0.7). the clock output frequency can further be divided by 2 using toggle latch (bit tlen is set to 1), the resulting output frequency has 50% duty cycle. figure 27 shows the clock distribution of the xc886/888. figure 27 clock generation from f sys pll n,p,k fsys= 96mhz clkrel cclk sclk pclk cclk2 core peripherals flash interface osc clkout fosc corel couts toggle latch tlen /2 mcan fclk fccfg
xc886/888clm functional description data sheet 69 v0.1, 2006-02 prelimary for power saving purposes, the clocks may be disabled or slowed down according to table 26 . table 26 system frequency (f sys =96mhz) power saving mode action idle clock to the cpu is disabled. slow-down clocks to the cpu and all the peripherals are divided by a common programmable factor defined by bit field cmcon.clkrel. power-down oscillator and pll are switched off.
xc886/888clm functional description data sheet 70 v0.1, 2006-02 prelimary 3.9 power saving modes the power saving modes of the xc886/888 pr ovide flexible power consumption through a combination of techniques, including: ? stopping the cpu clock ? stopping the clocks of in dividual system components ? reducing clock speed of some peripheral components ? power-down of the entire system with fast restart capability after a reset, the active mode (normal oper ating mode) is selected by default (see figure 28 ) and the system runs in the main system clock frequency. from active mode, different power saving modes can be selected by software. they are: ? idle mode ? slow-down mode ? power-down mode figure 28 transition between power saving modes power-down idle active slow-down set pd bit set pd bit set idle bit set idle bit set sd bit clear sd bit any interrupt & sd=0 exint0/rxd pin & sd=0 exint0/rxd pin & sd=1 any interrupt & sd=1
xc886/888clm functional description data sheet 71 v0.1, 2006-02 prelimary 3.10 watchdog timer the watchdog timer (wdt) provides a highly reliable and secure way to detect and recover from software or hardware failures. th e wdt is reset at a regular interval that is predefined by the user. the cpu must service the wdt within this interval to prevent the wdt from causing an xc886/888 system rese t. hence, routine service of the wdt confirms that the system is functioning pr operly. this ensures that an accidental malfunction of the xc886/888 will be aborted in a user-specified time period. in debug mode, the wdt is suspended and stops counting. ther efore, there is no need to refresh the wdt during debugging. features: ? 16-bit watchdog timer ? programmable reload value for upper 8 bits of timer ? programmable window boundary ? selectable input frequency of f pclk /2 or f pclk /128 ? time-out detection with nmi generation and reset prewarning activation (after which a system reset will be performed) the wdt is a 16-bit timer incremented by a count rate of f pclk /2 or f pclk /128. this 16-bit timer is realized as two concatenated 8-bit timers. the upper 8 bits of the wdt can be preset to a user-programmable value via a watchdog service access in order to modify the watchdog expire time period. the lower 8 bits are reset on each service access. figure 29 shows the block diagram of the wdt unit. figure 29 wdt block diagram wdtrel mux wd t low byte 1:2 clear wdt control 1:128 wdt high byte wdtto wdtin f pclk logic enw dt enw dt_p wdtrs t overflow/time-out control & window-boundary control wdtwinb
xc886/888clm functional description data sheet 72 v0.1, 2006-02 prelimary if the wdt is not serviced before the time r overflow, a system ma lfunction is assumed. as a result, the wdt nmi is triggered (a ssert wdtto) and the reset prewarning is entered. the prewarning period lasts for 30 h count, after which the system is reset (assert wdtrst). the wdt has a ?programmable window boundary? which disallows any refresh during the wdt?s count-up. a refresh during this window boundary constitutes an invalid access to the wdt, causing the reset prewar ning to be entered but without triggering the wdt nmi. the system will still be reset afte r the prewarning period is over. the window boundary is from 0000 h to the value obtained from the concatenation of wdtwinb and 00 h . after being serviced, the wdt continues c ounting up from the value ( * 2 8 ). the time period for an overflow of the wdt is programmable in two ways: ? the input frequency to the wdt can be selected to be either f pclk /2 or f pclk /128 ? the reload value wdtrel for the high byte of wdt can be programmed in register wdtrel the period, p wdt , between servicing the wdt and the next overflow can be determined by the following formula: if the window-boundary refresh feature of the wdt is enabled, the period p wdt between servicing the wdt and the next over flow is shortened if wdtwinb is greater than wdtrel, see figure 30 . this period can be calculated using the same formula by replacing wdtrel with wdtwinb. for this feature to be useful, wdtwinb should not be smaller than wdtrel. figure 30 wdt timing diagram p wdt 2 1wdtin + 6 () 2 16 wdtrel ? 2 8 () f pclk ----------------------------------------------------------------------------------------------------- - = wdtrel wdtwinb time count ffff h no refresh allowed refresh allowed
xc886/888clm functional description data sheet 73 v0.1, 2006-02 prelimary table 27 lists the possible watchdog time range that can be achieved for different module clock frequencies . some numbers are rounded to 3 significant digits. table 27 watchdog time ranges reload value in wdtrel prescaler for f pclk 2 (wdtin = 0) 128 (wdtin = 1) 24 mhz 24 mhz ff h 21.3 s1.37 ms 7f h 2.75 ms 176 ms 00 h 5.46 ms 350 ms
xc886/888clm functional description data sheet 74 v0.1, 2006-02 prelimary 3.11 uart and uart1 the xc886/888 provides two universal asynchronous receiver/transmitter (uart and uart1) modules for full-duplex asynchrono us reception/transmission. both are also receive-buffered, i. e., they can commence receptio n of a second byte before a previously received byte has been read from t he receive register. however, if the first byte still has not been read by the time reception of the second byte is complete, one of the bytes will be lost. features: ? full-duplex asynchronous modes ? 8-bit or 9-bit data frames, lsb first ? fixed or variable baud rate ? receive buffered ? multiprocessor communication ? interrupt generation on the completion of a data transmission or reception the uart modules can operate in four asynchronous modes as shown in table 28 . data is transmitted on txd and received on rxd. there are several ways to generate the baud rate clock for the serial port, depending on the mode in which it is operating. in mode 0, the baud rate for the transfer is fixed at f pclk /2. in mode 2, the baud rate is generated internally based on the uart input clock and can be configured to either f pclk /32 or f pclk /64. for uart1 module, only f pclk /64 is available. the variable baud rate is se t by the underflow rate on the dedicated baud- rate generator. for uart module, the variable baud rate alternatively can be set by the overflow rate on timer 1. table 28 uart modes operating mode baud rate mode 0: 8-bit shift register f pclk /2 mode 1: 8-bit shift uart variable mode 2: 9-bit shift uart f pclk /32 or f pclk /64 1) 1) for uart1 module, the baud rate is fixed at f pclk /64. mode 3: 9-bit shift uart variable
xc886/888clm functional description data sheet 75 v0.1, 2006-02 prelimary 3.11.1 baud-rate generator both uart modules have their own dedicated baud-rate generator, which is based on a programmable 8-bit reload value, and includes divider stages (i.e., prescaler and fractional divider) for generating a wide range of baud rates based on its input clock f pclk , see figure 31 . figure 31 baud-rate generator circuitry the baud rate timer is a count-down timer and is clocked by either the output of the fractional divider (f mod ) if the fractional divider is enabled (fdcon.fden = 1), or the output of the prescaler (f div ) if the fractional divider is disabled (fden = 0). for baud rate generation, the fractional divider must be configured to fractional divider mode (fdcon.fdm = 0). this allows the baud rate c ontrol run bit bcon.r to be used to start or stop the baud rate timer. at each timer un derflow, the timer is reloaded with the 8-bit reload value in register bg and one clock pulse is generated for the serial channel. enabling the fractional divider in normal di vider mode (fden = 1 and fdm = 1) stops the baud rate timer and nullifies the effect of bit bcon.r. see section 3.12 . the baud rate (f br ) value is dependent on the following parameters: ? input clock f pclk ? prescaling factor (2 brpre ) defined by bit field brpre in register bcon fdstep 1 fdm adder fdres fden&fdm clk fract ional divider prescaler ndov ?0? fden 00 01 10 11 11 10 01 00 0 1 (overflow) 0 f br 8-bit baud rate timer 8-bit reload value r 0 1 f div f div f pcl k f mod
xc886/888clm functional description data sheet 76 v0.1, 2006-02 prelimary ? fractional divider (step/256) defined by register fdstep (to be considered only if fractional divider is enabled and operating in fractional divider mode) ? 8-bit reload value (br_value) for the b aud rate timer defined by register bg the following formulas calculate the final b aud rate without and with the fractional divider respectively: the maximum baud rate that can be generated is limited to f pclk /32. hence, for a module clock of 24 mhz, the maximum achievable baud rate is 0.75 mbaud. standard lin protocal can support a maximum baud rate of 20khz, the baud rate accuracy is not critical and the fractional divider can be disabled. only the prescaler is used for auto baud rate calculation. for li n fast mode, which supports the baud rate of 20khz to 115.2khz, the higher baud rates r equire the use of the fractional divider for greater accuracy. table 29 lists the various commonly used baud rates with their corresponding parameter settings and deviation errors. the fractional divider is disabled and a module clock of 24 mhz is used. the fractional divider allows baud rates of higher accuracy (lower deviation error) to be generated. table 30 lists the resulting deviation errors from generating a baud rate of 115.2 khz, using different module clock frequencies. the fractional divider is enabled (fractional divider mode) and the corresponding parameter settings are shown. table 29 typical baud rates for uart with fractional divider disabled baud rate prescaling factor (2 brpre ) reload value (br_value + 1) deviation error 19.2 kbaud 1 (brpre=000 b ) 78 (4e h )0.17% 9600 baud 1 (brpre=000 b )156 (9c h )0.17% 4800 baud 2 (brpre=001 b )156 (9c h )0.17% 2400 baud 4 (brpre=010 b )156 (9c h )0.17% baud rate f pclk 16 2 brpre br_value 1 + () ----------------------------------------------------------------------------------- where 2 brpre br_value 1 + () 1 > = baud rate f pclk 16 2 brpre br_value 1 + () ----------------------------------------------------------------------------------- step 256 -------------- - =
xc886/888clm functional description data sheet 77 v0.1, 2006-02 prelimary table 30 deviation error for uart with fractional divider enabled f pclk prescaling factor (2 brpre ) reload value (br_value + 1) step deviation error 24 mhz 1 10 (a h ) 197 (c5 h ) +0.20 % 12 mhz 1 6 (6 h ) 236 (ec h ) +0.03 % 6.67 mhz 1 3 (3 h ) 236 (ec h ) +0.03 %
xc886/888clm functional description data sheet 78 v0.1, 2006-02 prelimary 3.11.2 baud rate generation using timer 1 in uart modes 1 and 3 of uart module, timer 1 can be used for generating the variable baud rates. in theory, this timer could be used in any of its modes. but in practice, it should be set into auto-reload mode (timer 1 mode 2), with its high byte set to the appropriate value for the required baud rate. the baud rate is determined by the timer 1 overflow rate and the value of smod as follows: [3.1] 3.12 normal divider mode (8-bit auto-reload timer) setting bit fdm in register fdcon to 1 conf igures the fractional divider to normal divider mode, while at the same time disables baud rate generation (see figure 31 ). once the fractional divider is enabled (fden = 1), it fu nctions as an 8-bit auto-reload timer (with no relation to baud rate generation) and count s up from the reload value with each input clock pulse. bit field result in register fdres represents the timer value, while bit field step in register fdstep defines the reload value. at each timer overflow, an overflow flag (fdcon.ndov) will be set and an interrupt request generated. this gives an output clock f mod that is 1/n of the input clock f div , where n is defined by 256 - step. the output frequency in normal divider mode is derived as follows: [3.2] mode 1, 3 baud rate 2 smod f pclk 32 2 256 th1 ? () ---------------------------------------------------- - = f mod f div 1 256 step ? ----------------------------- - =
xc886/888clm functional description data sheet 79 v0.1, 2006-02 prelimary 3.13 lin protocol the uart module can be used to support the local interconnect network (lin) protocol for both master and slave operations. this option is not available with uart1 module. the lin baud rate detection feature provides the capability to detect the baud rate within lin protocol using timer 2. this allows the uart to be synchronized to the lin baud rate for data transmission and reception. lin is a holistic communication concept for local interconnected networks in vehicles. the communication is based on the sci (uart) data format, a single-master/multiple- slave concept, a clock synchronization for nodes without stabilized time base. an attractive feature of lin is self-synchr onization of the slave nodes without a crystal or ceramic resonator, which signific antly reduces the cost of ha rdware platform. hence, the baud rate must be calculated and returned with every message frame. the structure of a lin frame is shown in figure 32 . the frame consists of the: ? header, which comprises a break (13-bit time low), synch byte (55 h ), and id field ? response time ? data bytes (according to uart protocol) ? checksum figure 32 structure of lin frame 3.13.1 lin header transmission lin header transmission is only applicable in master mode. in the lin communication, a master task decides when and which frame is to be transferred on the bus. it also identifies a slave task to provide the data transported by each fr ame. the information needed for the handshaking between the mast er and slave tasks is provided by the master task through the header portion of the frame. frame slot frame response inter- frame space response space header synch protected identifier data 1 data 2 data n checksum
xc886/888clm functional description data sheet 80 v0.1, 2006-02 prelimary the header consists of a break and synch pattern followed by an identifier. among these three fields, only the break pattern canno t be transmitted as a normal 8-bit uart data. the break must contain a dominant value of 13 bits or more to ensure proper synchronization of slave nodes. in the lin communication, a slave task is required to be synchronized at the beginning of the protected identifier fi eld of frame. for this purpose , every frame starts with a sequence consisting of a break field followed by a synch byte field. this sequence is unique and provides enough information for any slave task to detect the beginning of a new frame and be synchronized at t he start of the identifier field. upon entering lin communication, a connecti on is established and the transfer speed (baud rate) of the serial communication part ner (host) is automa tically synchronized in the following steps: step 1: initialize interface for recept ion and timer for baud rate measurement step 2: wait for an incoming lin frame from host step 3: synchronize the baud rate to the host step 4: enter for master request frame or for slave response frame note: re-synchronization and setup of baud rate are always done for every master request header or slave response header lin frame.
xc886/888clm functional description data sheet 81 v0.1, 2006-02 prelimary 3.14 high-speed synchronous serial interface the high-speed synchronous serial inte rface (ssc) supports full-duplex and half-duplex synchronous communication. the serial clock signal can be generated by the ssc internally (master mode), using its own 16-bit baud-rate generator, or can be received from an external master (slave mode). data width, shift direction, clock polarity and phase are programmable. this allows communication with spi-compatible devices or devices using other synchronous serial interfaces. features: ? master and slave mode operation ? full-duplex or half-duplex operation ? transmit and receive buffered ? flexible data format ? programmable number of data bits: 2 to 8 bits ? programmable shift directio n: lsb or msb shift first ? programmable clock polarity: idle low or high state for the shift clock ? programmable clock/data phase: data shift with leading or trailing edge of the shift clock ? variable baud rate ? compatible with serial peripheral interface (spi) ? interrupt generation ? on a transmitter empty condition ? on a receiver full condition ? on an error condition (receive, phase, baud rate, transmit error)
xc886/888clm functional description data sheet 82 v0.1, 2006-02 prelimary data is transmitted or received on lines txd and rxd, which are normally connected to the pins mtsr (master transmit/slave receive) and mrst (master receive/slave transmit). the clock signal is output via line ms_clk (master serial shift clock) or input via line ss_clk (slave serial shift clock). both lines are normally connected to the pin sclk. transmission and reception of data are double-buffered. figure 33 shows the block diagram of the ssc. figure 33 ssc block diagram pclk ss_clk rir tir eir receive int. request transmit int. request error int. request control status txd(mas ter) rxd(slave) shift clock ms_clk rxd(master) txd(slave) internal bus baud-rate generator clock control ssc control block register con pin control 16-bit shift register transmit buffer register tb receive buffer register rb
xc886/888clm functional description data sheet 83 v0.1, 2006-02 prelimary 3.15 timer 0 and timer 1 timer 0 and timer 1 can function as both time rs or counters. when functioning as a timer, timer 0 and timer 1 are incremented every machine cycle, i.e. every 2 input clocks (or 2 pclks). when functioning as a counter, timer 0 and timer 1 are incremented in response to a 1-to-0 transition (falling edge) at their respective external input pins, t0 or t1. timer 0 and 1 are fully compatible and can be configured in four different operating modes for use in a vari ety of applications, see table 31 . in modes 0, 1 and 2, the two timers operate independently, but in m ode 3, their functions are specialized. table 31 timer 0 and timer 1 modes mode operation 0 13-bit timer the timer is essentially an 8-bit counter with a divide-by-32 prescaler. this mode is included solely for compatibility with intel 8048 devices. 1 16-bit timer the timer registers, tlx and thx, are concatenated to form a 16-bit counter. 2 8-bit timer wi th auto-reload the timer register tlx is reloaded with a user-defined 8-bit value in thx upon overflow. 3 timer 0 operates as two 8-bit timers the timer registers, tl0 and th0, oper ate as two separate 8-bit counters. timer 1 is halted and retains its count even if enabled.
xc886/888clm functional description data sheet 84 v0.1, 2006-02 prelimary 3.16 timer 2 and timer 21 timer 2 and timer 21 are 16-bit general purpo se timers (thl2) that are fully compatible and have two modes of operation, a 16-bit auto-reload mode and a 16-bit one channel capture mode. as a timer, the timers count with an input clock of pclk/12 (if prescaler is disabled). as a counter, they count 1-to-0 transitions on pin t2. in the counter mode, the maximum resolution for the count is pclk/24 (if prescaler is disabled). table 32 timer 2 modes mode description auto-reload up/down count disabled ? count up only ? start counting from 16-bit reload value, overflow at ffff h ? reload event configurable for trigger by overflow condition only, or by negative/positive edge at input pin t2ex as well ? programmble reload value in register rc2 ? interrupt is generated with reload event up/down count enabled ? count up or down, direction determined by level at input pin t2ex ? no interrupt is generated ? count up ? start counting from 16-bit reload value, overflow at ffff h ? reload event triggered by overflow condition ? programmble reload value in register rc2 ? count down ? start counting from ffff h , underflow at value defined in register rc2 ? reload event triggered by underflow condition ? reload value fixed at ffff h channel capture ? count up only ? start counting from 0000 h , overflow at ffff h ? reload event triggered by overflow condition ? reload value fixed at 0000 h ? capture event triggered by falling/rising edge at pin t2ex ? captured timer value stored in register rc2 ? interrupt is generated wit h reload or capture event
xc886/888clm functional description data sheet 85 v0.1, 2006-02 prelimary 3.17 capture/compare unit 6 the capture/compare unit 6 (ccu6) provides two independent timers (t12, t13), which can be used for pulse width modulation (pwm) generation, especially for ac-motor control. the ccu6 also supports special control modes for block commutation and multi-phase machines. the timer t12 can function in capture and/or compare mode for its three channels. the timer t13 can work in compare mode only. the multi-channel control unit generates ou tput patterns, whic h can be modulated by t12 and/or t13. the modulation sources can be selected and combined for the signal modulation. timer t12 features: ? three capture/compare channels , each channel can be used either as a capture or as a compare channel ? supports generation of a three-phase pwm (six outputs, individual signals for highside and lowside switches) ? 16-bit resolution, maximum count frequency = peripheral clock frequency ? dead-time control for each channel to avoid short-circuits in the power stage ? concurrent update of the re quired t12/13 registers ? generation of center-aligned and edge-aligned pwm ? supports single-shot mode ? supports many interrupt request sources ? hysteresis-like control mode timer t13 features: ? one independent compare channel with one output ? 16-bit resolution, maximum count frequency = peripheral clock frequency ? can be synchronized to t12 ? interrupt generation at period-match and compare-match ? supports single-shot mode additional features: ? implements block commutation for brushless dc-drives ? position detection via hall-sensor pattern ? automatic rotational speed measurement for block commutation ? integrated error handling ? fast emergency stop without cpu load via external signal (ctrap ) ? control modes for multi-channel ac-drives ? output levels can be selected and adapted to the power stage
xc886/888clm functional description data sheet 86 v0.1, 2006-02 prelimary the block diagram of the ccu6 module is shown in figure 34 . figure 34 ccu6 block diagram channel 0 channel 1 channel 2 t12 dead- time control input / output control cc62 co ut62 cc61 co ut61 cc60 co ut60 co ut63 ct rap channel 3 t13 ccpos0 1 1 1 2 2 2 1 st art compare capture 3 multi- channel control address decoder clock control interrupt control trap control compare compar e compar e compar e 1 trap input port control ccpos1 ccpos2 output select output select 3 hall input module kernel ccu6_block_diagram t13hr t12hr
xc886/888clm functional description data sheet 87 v0.1, 2006-02 prelimary 3.18 analog-to-digital converter the xc886/888 includes a high-performance 10-bit analog-to-digital converter (adc) with eight multiplexed analog input channels . the adc uses a successive approximation technique to convert the analog voltage levels from up to eight different sources. the analog input channels of the adc are available at port 2. features: ? successive approximation ? 8-bit or 10-bit resolution (tue of 1 lsb and 2 lsb, respectively) ? eight analog channels ? four independent result registers ? result data protection for slow cpu access (wait-for-read mode) ? single conversion mode ? autoscan functionality ? limit checking for conversion results ? data reduction filter (accumulation of up to 2 conversion results) ? two independent conversion reques t sources with programmable priority ? selectable conversion request trigger ? flexible interrupt generation with configurable service nodes ? programmable sample time ? programmable clock divider ? cancel/restart feature for running conversions ? integrated sample and hold circuitry ? compensation of offset errors ? low power modes
xc886/888clm functional description data sheet 88 v0.1, 2006-02 prelimary 3.18.1 adc clocking scheme a common module clock f adc generates the various clock signals used by the analog and digital parts of the adc module: ?f adca is input clock for the analog part. ?f adci is internal clock for the analog part (defin es the time base for conversion length and the sample time). this clock is generated internally in the analog part, based on the input clock f adca to generate a correct duty cycle for the analog components. ?f adcd is input clock for the digital part. the internal clock for the analog part f adci is limited to a maximum frequency of 10 mhz. therefore, the adc clock pr escaler must be programmed to a value that ensures f adci does not exceed 10 mhz. the prescaler ratio is selected by bit field ctc in register globctr. a prescaling ratio of 32 can be selected when the maximum performance of the adc is not required. figure 35 adc clocking scheme anal og components f adci f adc = f pclk mux arbi ter regi sters interrupts anal og part di gi tal part f adcd f adca 32 clock prescaler ctc ? 2
xc886/888clm functional description data sheet 89 v0.1, 2006-02 prelimary for module clock f adc = 24 mhz, the analog clock f adci frequency can be selected as shown in table 33 . as f adci cannot exceed 10 mhz, bit field ctc should not be set to 00 b when f adc is 24 mhz. during slow-down mode where f adc may be reduced to 12 mhz, 6 mhz etc., ctc can be set to 00 b as long as the divided analog clock f adci does not exceed 10 mhz. however, it is important to note th at the conversion error could increase due to loss of charges on the capacitors, if f adc becomes too low during slow-down mode. 3.18.2 adc conversion sequence the analog-to-digital conversion procedur e consists of the following phases: ? synchronization phase (t syn ) ? sample phase (t s ) ? conversion phase ? write result phase (t wr ) figure 36 adc conv ersion timing table 33 f adci frequency selection module clock f adc ctc prescaling ratio analog clock f adci 24 mhz 00 b 2 12 mhz (n.a) 01 b 3 8mhz 10 b 4 6mhz 11 b (default) 32 750 khz t s t conv t wr sample bit busy bit conversion phase sample phase write result phase conversion start trigger source interrupt result interrupt t syn channel interrupt f adci
xc886/888clm functional description data sheet 90 v0.1, 2006-02 prelimary 3.19 on-chip debug support the on-chip debug support (ocds) provides the basic functionality required for the software development and debugging of xc800-based systems. the ocds design is based on these principles: ? use the built-in debug functionality of the xc800 core ? add a minimum of hardware overhead ? provide support for most of the operations by a monitor program ? use standard interfaces to communicate with the host (a debugger) features: ? set breakpoints on instruction addre ss and on address range within the program memory ? set breakpoints on internal ram address range ? support unlimited software breakpoints in flash/ram code region ? process external breaks via jtag and upon activating a dedicated pin ? step through the program code the ocds functional blocks are shown in figure 37 . the monitor mode control (mmc) block at the center of ocds system brin gs together control signals and supports the overall functionality. the mmc communicates with the xc800 core, primarily via the debug interface, and also receives reset and clock signals. after processing memory address and control signals from the core, the mmc provides proper access to the dedicated extra-memories: a monitor rom (holding the code) and a monitor ram (for work-data and monitor-stack). the ocds system is accessed through the jtag 1) , which is an interface dedicated exclusively for testing and debugging activities and is not normally used in an application. the dedicated mbc pin is used for external configuration and debugging control. note: all the debug functionality described here can normally be used only after xc886/ 888 has been started in ocds mode. 1) the pins of the jtag port can be assigned to either the primary port (port 0) or either of the secondary ports (ports 1 and 2/port 5). user must set the jtag pins (tck and tdi) as input during connection with the ocds system.
xc886/888clm functional description data sheet 91 v0.1, 2006-02 prelimary figure 37 ocds block diagram 3.19.1 jtag id register this is a read-only register located inside th e jtag module, and is used to recognize the device(s) connected to the jtag interf ace. its content is shifted out when instruction register contains the idcode command (opcode 04 h ), and the same is also true immediately after reset. the jtag id register c ontents for the xc886/888 flash devices are given in table 34 . note: the asterisk (*) above denotes all possible device configurations. table 34 jtag id summary device type device name jtag id flash xc886/888*-8ff 1012 0083 h xc886/888*-6ff 1012 5083 h jtag module monitor & bootstrap loader control line jtag memory control unit user program memory xc800 core prog & iram addresses debug interface reset clock tms tck tdi tdo tck tdi tdo control memory control debug interface system control unit boot/ monitor rom monitor ram user internal ram reset reset clock prog data monitor mode control mbc - parts of ocds suspend control ocds_xc886c-block_diagram-um-v0.2
xc886/888clm functional description data sheet 92 v0.1, 2006-02 prelimary 3.20 identification register the xc886/888 identity register is located at page 1 of address b3 h . id identity register reset value: 0000 1001 b 76543210 prodid verid rr field bits type description verid [2:0] r version id 001 b prodid [7:3] r product id 00001 b
xc886/888clm electrical parameters data sheet 93 v0.1, 2006-02 prelimary 4 electrical parameters 4.1 general parameters 4.1.1 parameter interpretation the parameters listed in this section represent partly the characteristics of the xc886/ 888 and partly its requirements on the system . to aid interpreting the parameters easily when evaluating them for a design, they are indicated by the abbreviations in the ?symbol? column: ? cc these parameters indicate c ontroller c haracteristics, which are distinctive features of the xc886/888 and must be regarded for a system design. ? sr these parameters indicate s ystem r equirements, which must be provided by the microcontroller system in which the xc886/888 designed in.
xc886/888clm electrical parameters data sheet 94 v0.1, 2006-02 prelimary pr el i m i nar y 4.1.2 absolute maximum rating maximum ratings are the extreme limits to which the xc886/888 can be subjected to without permanent damage. table 35 absolute maximum rating parameters note: stresses above those listed under ?absolute maximum ratings? may cause permanent damage to the device. this is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of th is specification is not im plied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. during absolute maximum rating overload conditions (v in >v ddp or v in xc886/888clm electrical parameters data sheet 95 v0.1, 2006-02 prelimary pr el i m i nar y 4.1.3 operating conditions the following operating conditions must not be exceeded in order to ensure correct operation of the xc886/888. all parameters mentioned in the following table refer to these operating conditions , unless otherwise noted. table 36 operating condition parameters parameter symbol limit values unit notes/ conditions min. max. digital power supply voltage v ddp 4.5 5.5 v 5v range 3.0 3.6 v 3.3v range digital ground voltage v ss 0v digital core supply voltage v ddc 2.3 2.7 v system clock frequency 1) 1) f sys is the pll output clock. during normal operating mode, cpu clock is f sys / 4. please refer to figure 27 for detailed description. f sys 88.8 103.2 mhz ambient temperature t a -40 85 c saf-xc886/ 888... -40 125 c sak-xc886/ 888...
xc886/888clm electrical parameters data sheet 96 v0.1, 2006-02 prelimary pr el i m i nar y 4.2 dc parameters 4.2.1 input/output characteristics table 37 input/output characteristics (operating conditions apply) parameter symbol limit values unit test conditions min. max. v ddp = 5v range output low voltage v ol cc ? 1.0 v i ol =15ma ?0.4v i ol =5ma output high voltage v oh cc v ddp - 1.0 ?v i oh =-15ma v ddp - 0.4 ?v i oh =-5ma input low voltage on port pins (all except p0.0 & p0.1) v ilp sr ? 0.3 v ddp v cmos mode input low voltage on p0.0 & p0.1 v ilp0 sr -0.2 0.3 v ddp v cmos mode input high voltage on port pins (all except p0.0 & p0.1) v ihp sr 0.7 v ddp ?vcmos mode input high voltage on p0.0 & p0.1 v ihp0 sr 0.7 v ddp v ddp v cmos mode input hysteresis 1) hys cc 0.08 v ddp ?vcmos mode pull-up current i pu sr ? -10 a v ih,min -150 ? a v il,max pull-down current i pd sr ? 10 a v il,max 150 ? a v ih,min input leakage current 2) i oz1 cc -1 1 a 0 < v in < v ddp , t a 125 c overload current on any pin i ov sr -5 5 ma absolute sum of overload currents | i ov | sr ?tbdma 3)
xc886/888clm electrical parameters data sheet 97 v0.1, 2006-02 prelimary pr el i m i nar y v ddp = 3.3v range output low voltage v ol cc ? 1.0 v i ol =8ma ?0.4v i ol =2.5ma output high voltage v oh cc v ddp - 1.0 ?v i oh =-8ma v ddp - 0.4 ?v i oh =-2.5ma input low voltage on port pins (all except p0.0 & p0.1) v ilp sr ? 0.3 v ddp v cmos mode input low voltage on p0.0 & p0.1 v ilp0 sr -0.2 0.3 v ddp v cmos mode input high voltage on port pins (all except p0.0 & p0.1) v ihp sr 0.7 v ddp ?vcmos mode input high voltage on p0.0 & p0.1 v ihp0 sr 0.7 v ddp v ddp v cmos mode input hysteresis 1) hys cc 0.03 v ddp ?vcmos mode pull-up current i pu sr ? -5 a v ih,min -50 ? a v il,max pull-down current i pd sr ? 5 a v il,max 50 ? a v ih,min input leakage current 2) i oz1 cc -1 1 a 0 < v in < v ddp , t a 125 c overload current on any pin i ov sr -5 5 ma absolute sum of overload currents | i ov | sr ?tbdma 3) 1) not subjected to production test, verified by design/c haracterization. hysteresis is implemented to avoid meta stable states and switching due to internal ground bounc e. it cannot be guaranteed that it suppresses switching due to external system noise. 2) an additional error current ( i inj ) will flow if an overload current flows through an adjacent pin. tms pin and reset pin have internal pull devices and are not inclu ded in the input leakage current characteristic. table 37 input/output characteristics (operating conditions apply) parameter symbol limit values unit test conditions min. max.
xc886/888clm electrical parameters data sheet 98 v0.1, 2006-02 prelimary pr el i m i nar y 4.2.2 supply threshold characteristics figure 38 supply threshold parameters 3) not subjected to production test, ve rified by design/characterization. table 38 supply threshold parameters (operating conditions apply) parameters symbol limit values unit min. typ. max. v ddc prewarning voltage 1) 1) detection is disabled in power-down mode. v ddcpw cc 2.2 2.3 2.4 v v ddc brownout voltage in active mode 1) v ddcbo cc 2.0 2.1 2.2 v ram data retention voltage v ddcrdr cc 0.9 1.0 1.1 v v ddc brownout voltage in power-down mode 2) 2) detection is enabled in both active and power-down mode. v ddcbopd cc 1.3 1.5 1.7 v v ddp prewarning voltage 3) 3) detection is enabled for external power supply of 5.0v. detection must be disabled for external power supply of 3.3v. v ddppw cc 3.4 4.0 4.6 v power-on reset voltage 2) 4) 4) the reset of evr is extended by 300 s typically a fter the vddc reaches the power-on reset voltage. v ddcpor cc 1.3 1.5 1.7 v vddp vddc v ddppw v ddcpor v ddcpw v ddcbo v ddcbopd 5.0v 2.5v v ddcrdr
xc886/888clm electrical parameters data sheet 99 v0.1, 2006-02 prelimary pr el i m i nar y 4.2.3 adc characteristics the values in the table below are given for an analog power supply between 4.5 v to 5.5 v. the adc can be used with an analog power supply down to 3 v. but in this case, the analog parameters may show a reduced performance. all ground pins (v ss ) must be externally connected to one single star point in the system. the vo ltage difference between the ground pins must not exceed 200mv. table 39 adc characteristics (ope rating conditions apply; v ddp = 5v range) parameter symbol limit values unit test conditions/ remarks min. typ . max. analog reference voltage v aref sr v agnd + 1 v ddp v ddp + 0.05 v analog reference ground v agnd sr v ss - 0.05 v ss v aref - 1 v analog input voltage range v ain sr v agnd ? v aref v adc clocks f adc ? 24 25.8 mhz module clock f adci ? ? 10 mhz internal analog clock see figure 35 sample time t s cc (2 + inpcr0.stc) t adci s conversion time t c cc see section 4.2.3.1 s total unadjusted error tue 1) cc ? ? 1 lsb 8-bit conversion. 2) ?? 2 lsb 10-bit conversion. switched capacitance at the reference voltage input c arefsw cc ?1020pf 2)3) switched capacitance at the analog voltage inputs c ainsw cc ?57pf 2)4) input resistance of the reference input r aref cc ? 1 2 k ? 2) input resistance of the selected analog channel r ain cc ? 1 1.5 k ? 2)
xc886/888clm electrical parameters data sheet 100 v0.1, 2006-02 prelimary pr el i m i nar y figure 39 adc input circuits 1) tue is tested at v aref =5.0v, v agnd =0v , v ddp =5.0v. 2) not subject to production test, ve rified by design/characterization 3) this represents an equivalent switched capacitance. this capacitance is not switched to the reference voltage at once. instead of this, smaller capacitances ar e successively switched to the reference voltage. 4) the sampling capacity of the conversion c-network is pre-charged to v aref /2 before connecting the input to the c-network. because of the parasitic elemen ts, the voltage measured at anx is lower than v aref /2. v agndx r ext analog input circuitry v ain c ext anx c ainsw r ain, on v agndx reference voltage input circuitry c arefsw r aref, on v arefx v aref
xc886/888clm electrical parameters data sheet 101 v0.1, 2006-02 prelimary pr el i m i nar y 4.2.3.1 adc conversion timing conversion time, t c =t adc ( 1 + r (3 + n + stc) ) , where r = ctc + 2 for ctc = 00 b , 01 b or 10 b , r = 32 for ctc = 11 b , ctc = conversion time control (globctr.ctc), stc = sample time control (inpcr0.stc), n = 8 or 10 (for 8-bit and 10-bit conversion respectively), t adc =1/f adc
xc886/888clm electrical parameters data sheet 102 v0.1, 2006-02 prelimary pr el i m i nar y 4.2.4 power supply current table 40 power supply current parameters (operating conditions apply; v ddp = 5v range ) parameter symbol limit values unit test condition typ. 1) 1) the typical i ddp values are based on prelimary measurements and are to be used as reference only. these values are periodically measured at t a =+25 c and v ddp =5.0v. max. 2) 2) the maximum i ddp values are measured under worst case conditions ( t a = + 125 c and v ddp =5.5v). v ddp = 5v range active mode i ddp 29 tbd ma 3) 3) i ddp (active mode) is measured with: cpu clock and input clock to all peripherals running at 24 mhz(set by on-chip oscillator of 9.6 mhz and ndiv in pll_con to 1001 b ), reset = v ddp . idle mode i ddp 21.1 tbd ma 4) 4) i ddp (idle mode) is measured with: cpu clock disabled, watchdog timer disabled, input clock to all peripherals enabled and running at 24 mhz, reset = v ddp . active mode with slow-down enabled i ddp tbd tbd ma 5) 5) i ddp (active mode with slow-down mode) is measured with: cpu clock and input clock to all peripherals running at 8 mhz by setting clkrel in cmcon to 0110 b , reset = v ddp . idle mode with slow-down enabled i ddp tbd tbd ma 6) 6) i ddp (idle mode with slow-down mode) is measured with: cpu clock disabled, watchdog timer disabled, input clock to all peripherals enabled and running at 8 mhz by setting clkrel in cmcon to 0110 b , reset = v ddp . power-down mode i pdp 10 tbd a 7) 7) i pdp (power-down mode) is measured with: reset = v ddp , v agnd = v ss , rxd/int0 = v ddp ; rest of the ports are programmed to be input with either internal pull de vices enabled or driven externally to ensure no floating inputs.
xc886/888clm electrical parameters data sheet 103 v0.1, 2006-02 prelimary pr el i m i nar y table 41 power supply current parameters (operating conditions apply; v ddp = 3.3v range) parameter symbol limit values unit test condition typ. 1) 1) the typical i ddp values are periodically measured at t a =+25 c and v ddp =3.3v. max. 2) 2) the maximum i ddp values are measured under worst case conditions ( t a = + 125 c and v ddp =3.6v). v ddp = 3.3v range active mode i ddp tbd tbd ma 3) 3) i ddp (active mode) is measured with: cpu clock and input clock to all peripherals running at 24 mhz(set by on-chip oscillator of 9.6 mhz and ndiv in pll_con to 1001 b ), reset = v ddp . idle mode i ddp tbd tbd ma 4) 4) i ddp (idle mode) is measured with: cpu clock disabled, watchdog timer disabled, input clock to all peripherals enabled and running at 24 mhz, reset = v ddp . active mode with slow-down enabled i ddp tbd tbd ma 5) 5) i ddp (active mode with slow-down mode) is measured with: cpu clock and input clock to all peripherals running at 8 mhz by setting clkrel in cmcon to 0110 b , reset = v ddp . idle mode with slow-down enabled i ddp tbd tbd ma 6) 6) i ddp (idle mode with slow-down mode) is measured with: cpu clock disabled, watchdog timer disabled, input clock to all peripherals enabled and running at 8 mhz by setting clkrel in cmcon to 0110 b ,, reset = v ddp . power-down mode i pdp tbd tbd a 7) 7) i pdp (power-down mode) is measured with: reset = v ddp , v agnd = v ss , rxd/int0= v ddp ; rest of the ports are programmed to be input with either internal pull de vices enabled or driven externally to ensure no floating inputs
xc886/888clm electrical parameters data sheet 104 v0.1, 2006-02 prelimary pr el i m i nar y 4.3 ac parameters 4.3.1 testing waveforms the testing waveforms for rise/fall time, output delay and output high impedance are shown in figure 40 , figure 41 and figure 42 . figure 40 rise/fall time parameters figure 41 testing waveform, output delay figure 42 testing waveform, output high impedance 10% 90% 10% 90% v ss v ddp t r t f v dde / 2 te st p o in ts v dde / 2 v ss v ddp v load + 0.1 v v oh - 0.1 v timing reference points v load - 0.1 v v ol - 0.1 v
xc886/888clm electrical parameters data sheet 105 v0.1, 2006-02 prelimary pr el i m i nar y 4.3.2 output rise/fall times figure 43 rise/fall times parameters table 42 output rise/fall times parameters (operating conditions apply) parameter symbol limit values unit test conditions min. max. v ddp = 5v range rise/fall times 1) 2) 1) rise/fall time measurements are taken with 10% - 90% of the pad supply. 2) not all parameters are 100% tested, but are verified by design/characterization and test correlation. t r , t f ? 10 ns 20 pf. 3) 3) additional rise/fall time valid for c l = 20pf - 100pf @ 0.125 ns/pf. v ddp = 3.3v range rise/fall times 1) 2) t r , t f ? 10 ns 20 pf. 4) 4) additional rise/fall time valid for c l = 20pf - 100pf @ 0.225 ns/pf. t r 10% 90% 10% 90% t f v ss v ddp
xc886/888clm electrical parameters data sheet 106 v0.1, 2006-02 prelimary pr el i m i nar y 4.3.3 power-on reset and pll timing table 43 power-on reset and pll timing (operating conditions apply) parameter symbol limit values unit test conditions min. typ. max. pad operating voltage v pad cc 2.3 ? ? v on-chip oscillator start-up time t oscst cc ??500ns flash initialization time t finit cc ? 160 ? s reset hold time 1) 1) reset signal has to be active (low) until v ddc has reached 90% of its maximum value (typ. 2.5v). t rst sr ? 500 ? s v ddp rise time (10% ? 90%) 500s pll lock-in in time t lock cc ? ? 200 s pll accumulated jitter d p ??tbdns 2) 2) pll lock at 96 mhz using a 4 mhz external oscillator. the pll divider settings are k = 2, n = 48 and p = 1.
xc886/888clm electrical parameters data sheet 107 v0.1, 2006-02 prelimary pr el i m i nar y figure 4-1 power-on reset timing vddp pads vddc v pad osc t oscst pll res et initialization ready to read flash state pll unlock pll lock 1) 2) 3) t lock t finit 1)pad state undefined 2)enps control 3)as programmed i)until evr is stable ii)until pll is locked iii) until flash go to ready-to-read iv) cpu reset is released; boot rom software begin execution reset t rst
xc886/888clm electrical parameters data sheet 108 v0.1, 2006-02 prelimary pr el i m i nar y 4.3.4 on-chip oscillator characteristics table 44 on-chip oscillator characteri stics (operating conditions apply) parameter symbol limit values unit test conditions min. typ. max. nominal frequency f nom cc ? 9.6 ? mhz under nominal conditions 1) after ifx-backend trimming 1) nominal condition: v ddc =2.5v, t a =+25 c. chip-to-chip frequency deviation ? f cc cc -2.5 ? 2.5 % with respect to f nom long term frequency deviation ? f lt cc -5.0 ? 5.0 % with respect to f nom , over lifetime and temperature, for one given device after trimming short term frequency deviation ? f st cc -1.0 ? 1.0 % with respect to f nom , within one lin message (<10 ms .... 100 ms)
xc886/888clm electrical parameters data sheet 109 v0.1, 2006-02 prelimary pr el i m i nar y 4.3.5 jtag timing table 45 tck clock timing (operating conditions apply; c l = 50 pf) figure 44 tck clock timing parameter symbol limits unit min max tck clock period t tck sr 50 ? ns tck high time t 1 sr tbd ? ns tck low time t 2 sr tbd ? ns tck clock rise time t 3 sr ? tbd ns tck clock fall time t 4 sr ? tbd ns tck t 4 0.9 v ddp t 3 t 1 0.1 v ddp t 2 t tck 0.5 v ddp
xc886/888clm electrical parameters data sheet 110 v0.1, 2006-02 prelimary pr el i m i nar y table 46 jtag timing (operating conditions apply; c l =50 pf) figure 45 jtag timing parameter symbol limits unit min max tms setup to tck t 1 sr tbd ? ns tms hold to tck t 2 sr tbd ? ns tdi setup to tck t 1 sr tbd ? ns tdi hold to tck t 2 sr tbd ? ns tdo valid output from tck t 3 cc ? tbd ns tdo high impedance to valid output from tck t 4 cc ? tbd ns tdo valid output to high impedance from tck t 5 cc ? tbd ns tms tdi tck tdo t 1 t 2 t 1 t 2 t 4 t 3 t 5
xc886/888clm electrical parameters data sheet 111 v0.1, 2006-02 prelimary pr el i m i nar y 4.3.6 ssc master mode timing table 47 ssc master mode timing (operating conditions apply; c l = 50 pf) figure 46 ssc master mode timing parameter symbol limit values unit min. max. sclk clock period t 0 cc 2*t ssc 1) 1) t sscmin =t cpu =1/f cpu . when f cpu = 24mhz, t 0 = 83.3ns. t cpu is the cpu clock period. ?ns mtsr delay from sclk t 1 cc 0 tbd ns mrst setup to sclk t 2 sr tbd ? ns mrst hold from sclk t 3 sr tbd ? ns ssc_tmg1 sclk 1) mtsr 1) t 1 t 1 mrst 1) t 3 data valid t 2 t 1 1) this timing is based on the following setup: con.ph = con.po = 0. t 0
xc886/888clm package and quality declaration data sheet 112 v0.1, 2006-02 prelimary pr el i m i nar y 5 package and quality declaration 5.1 package outline figure 47 pg-tqfp-48-4 package outline
xc886/888clm package and quality declaration data sheet 113 v0.1, 2006-02 prelimary pr el i m i nar y figure 48 pg-tqfp-64-8 package outline
xc886/888clm package and quality declaration data sheet 114 v0.1, 2006-02 prelimary pr el i m i nar y 5.2 quality declaration table 48 shows the characteristics of the quality parameters in the xc886/888. table 48 quality parameters parameter symbol limit values unit notes min. max. esd susceptibility according to human body model (hbm) v hbm ? 2000 v conforming to eia/jesd22- a114-b esd susceptibility according to charged device model (cdm) pins v cdm ? 500 v conforming to jesd22-c101-c
http://www.infineon.com published by infineon technologies ag


▲Up To Search▲   

 
Price & Availability of SAF-XC886C-8FFI

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X